mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-02 19:55:14 +00:00
Add anal.a2f var to use the new WIP analysis for testing
This commit is contained in:
parent
8c15365ce9
commit
61ca2bc30b
@ -1,4 +1,4 @@
|
||||
/* radare - LGPL - Copyright 2009-2014 - pancake, nibble */
|
||||
/* radare - LGPL - Copyright 2009-2015 - pancake, nibble */
|
||||
|
||||
#include <r_types.h>
|
||||
#include <r_list.h>
|
||||
@ -644,6 +644,10 @@ R_API int r_core_anal_fcn(RCore *core, ut64 at, ut64 from, int reftype, int dept
|
||||
next[nexti] = (x); \
|
||||
nexti++; \
|
||||
}
|
||||
if (r_config_get_i (core->config, "anal.a2f")) {
|
||||
r_core_cmd0 (core, ".a2f");
|
||||
return 0;
|
||||
}
|
||||
if (use_esil) {
|
||||
return r_core_anal_esil_fcn (core, at, from, reftype, depth);
|
||||
}
|
||||
|
@ -864,6 +864,7 @@ R_API int r_core_config_init(RCore *core) {
|
||||
SETPREF("pdb.server", "http://msdl.microsoft.com/download/symbols", "Microsoft symbol server");
|
||||
|
||||
/* anal */
|
||||
SETPREF("anal.a2f", "false", "Use the new WIP analysis algorithm (core/p/a2f), anal.depth ignored atm");
|
||||
SETICB("anal.gp", 0, (RConfigCallback)&cb_anal_gp, "Set the value of the GP register (mips)");
|
||||
SETCB("anal.limits", "false", (RConfigCallback)&cb_anal_limits, "Obey anal.from and anal.to ranges");
|
||||
SETICB("anal.from", -1, (RConfigCallback)&cb_anal_from, "Minimum address in the anal.limits range");
|
||||
|
Loading…
x
Reference in New Issue
Block a user