mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 20:22:38 +00:00
Fix asm. options lost after pdc
issue
This commit is contained in:
parent
43dfbd9820
commit
153be0ce0a
@ -15,6 +15,11 @@ R_API int r_core_pseudo_code (RCore *core, const char *input) {
|
||||
int asmfcnlines = r_config_get_i (core->config, "asm.fcnlines");
|
||||
int asmcomments = r_config_get_i (core->config, "asm.comments");
|
||||
int asmfunctions = r_config_get_i (core->config, "asm.functions");
|
||||
if (!fcn) {
|
||||
eprintf ("Cannot find function in 0x%08"PFMT64x"\n",
|
||||
core->offset);
|
||||
return R_FALSE;
|
||||
}
|
||||
r_config_set_i (core->config, "asm.pseudo", 1);
|
||||
r_config_set_i (core->config, "asm.decode", 0);
|
||||
r_config_set_i (core->config, "asm.lines", 0);
|
||||
@ -24,11 +29,6 @@ R_API int r_core_pseudo_code (RCore *core, const char *input) {
|
||||
r_config_set_i (core->config, "asm.fcnlines", 0);
|
||||
r_config_set_i (core->config, "asm.comments", 0);
|
||||
r_config_set_i (core->config, "asm.functions", 0);
|
||||
if (!fcn) {
|
||||
eprintf ("Cannot find function in 0x%08"PFMT64x"\n",
|
||||
core->offset);
|
||||
return R_FALSE;
|
||||
}
|
||||
|
||||
db = sdb_new0 ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user