mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-03 03:35:37 +00:00
add esil.debug config var
This commit is contained in:
parent
53525805f5
commit
78594cdf3e
@ -1561,6 +1561,7 @@ static void cmd_anal_esil(RCore *core, const char *input) {
|
||||
romem = r_config_get_i (core->config, "esil.romem");
|
||||
stats = r_config_get_i (core->config, "esil.stats");
|
||||
r_anal_esil_setup (esil, core->anal, romem, stats); // setup io
|
||||
esil->debug = (int)r_config_get_i (core->config, "esil.debug");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
@ -492,6 +492,14 @@ static int cb_dbgbackend(void *user, void *data) {
|
||||
return R_TRUE;
|
||||
}
|
||||
|
||||
static int cb_esildebug (void *user, void *data) {
|
||||
RCore *core = (RCore *) user;
|
||||
RConfigNode *node = (RConfigNode*) data;
|
||||
if (core->anal->esil)
|
||||
core->anal->esil->debug = node->i_value;
|
||||
return R_TRUE;
|
||||
}
|
||||
|
||||
static int cb_fixrows(void *user, void *data) {
|
||||
RConfigNode *node = (RConfigNode *) data;
|
||||
r_cons_singleton ()->fix_rows = node->i_value;
|
||||
@ -964,6 +972,8 @@ R_API int r_core_config_init(RCore *core) {
|
||||
SETI("anal.ptrdepth", 3, "Maximum number of nested pointers to follow in analysis");
|
||||
SETICB("anal.maxreflines", 0, &cb_analmaxrefs, "Maximum number of reflines to be analyzed and displayed in asm.lines with pd");
|
||||
|
||||
SETCB("esil.debug", "false", &cb_esildebug, "Show esil debug info");
|
||||
|
||||
/* asm */
|
||||
//asm.os needs to be first, since other asm.* depend on it
|
||||
SETCB("asm.os", R_SYS_OS, &cb_asmos, "Select operating system (kernel) (linux, darwin, w32,..)");
|
||||
|
Loading…
x
Reference in New Issue
Block a user