mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-02 18:27:18 +00:00
Honor asm.instr in pdi ##disasm
This commit is contained in:
parent
e7ef4e6d62
commit
ab8dfab3e4
@ -6170,6 +6170,7 @@ R_API int r_core_disasm_pdi(RCore *core, int nb_opcodes, int nb_bytes, int fmt)
|
||||
int filter = r_config_get_i (core->config, "asm.filter");
|
||||
int show_color = r_config_get_i (core->config, "scr.color");
|
||||
bool asm_ucase = r_config_get_i (core->config, "asm.ucase");
|
||||
bool asm_instr = r_config_get_i (core->config, "asm.instr");
|
||||
int esil = r_config_get_i (core->config, "asm.esil");
|
||||
int flags = r_config_get_i (core->config, "asm.flags");
|
||||
bool asm_immtrim = r_config_get_i (core->config, "asm.imm.trim");
|
||||
@ -6367,7 +6368,9 @@ toro:
|
||||
free (op_hex);
|
||||
}
|
||||
ret = asmop.size;
|
||||
if (!asm_immtrim && (decode || esil)) {
|
||||
if (!asm_instr) {
|
||||
r_cons_newline ();
|
||||
} else if (!asm_immtrim && (decode || esil)) {
|
||||
RAnalOp analop = {
|
||||
0
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user