mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-07 02:23:58 +00:00
Rename config var anal.detectwrites -> anal.onchange
This commit is contained in:
parent
fba739a1ee
commit
d83aebe94f
@ -3512,7 +3512,7 @@ static int agraph_print(RAGraph *g, int is_interactive, RCore *core, RAnalFuncti
|
||||
|
||||
static void check_function_modified(RCore *core, RAnalFunction *fcn) {
|
||||
if (r_anal_function_was_modified (fcn)) {
|
||||
if (r_config_get_i (core->config, "anal.detectwrites")
|
||||
if (r_config_get_i (core->config, "anal.onchange")
|
||||
|| r_cons_yesno ('y', "Function was modified. Reanalyze? (Y/n)")) {
|
||||
r_anal_function_update_analysis (fcn);
|
||||
}
|
||||
|
@ -3320,7 +3320,7 @@ R_API int r_core_config_init(RCore *core) {
|
||||
SETI ("pdb.autoload", false, "Automatically load the required pdb files for loaded DLLs");
|
||||
|
||||
/* anal */
|
||||
SETBPREF ("anal.detectwrites", "false", "Automatically reanalyze function after a write");
|
||||
SETBPREF ("anal.onchange", "false", "Automatically reanalyze function if any byte has changed (EXPERIMENTAL)");
|
||||
SETPREF ("anal.fcnprefix", "fcn", "Prefix new function names with this");
|
||||
const char *analcc = r_anal_cc_default (core->anal);
|
||||
SETCB ("anal.cc", analcc? analcc: "", (RConfigCallback)&cb_analcc, "Specify default calling convention");
|
||||
|
@ -2795,7 +2795,7 @@ static int win_eprintf(const char *format, ...) {
|
||||
static void ev_iowrite_cb(REvent *ev, int type, void *user, void *data) {
|
||||
RCore *core = user;
|
||||
REventIOWrite *iow = data;
|
||||
if (r_config_get_i (core->config, "anal.detectwrites")) {
|
||||
if (r_config_get_i (core->config, "anal.onchange")) {
|
||||
// works, but loses varnames and such, but at least is not crashing
|
||||
char *cmd = r_str_newf ("af-0x%08"PFMT64x";af 0x%08"PFMT64x, iow->addr, iow->addr);
|
||||
r_list_append (core->cmdqueue, cmd);
|
||||
|
@ -4107,7 +4107,7 @@ CMDS=<<EOF
|
||||
e asm.arch=x86
|
||||
e asm.bits=64
|
||||
e bin.cache=1
|
||||
e anal.detectwrites=1
|
||||
e anal.onchange=1
|
||||
s 0x0
|
||||
f func
|
||||
wx 7f454c4602010100000000000000000003003e0001000000f0040000000000004000000000000000e0180000000000000000000040003800090040001c001b000600000004000000400000000000000040000000000000004000000000000000f801000000000000f801000000000000080000000000000003
|
||||
|
@ -2,7 +2,7 @@
|
||||
NAME=Automatically reanalyze function control flow after a write
|
||||
FILE=-
|
||||
BROKEN=1
|
||||
ARGS=-a x86 -b 64 -e anal.detectwrites=true
|
||||
ARGS=-a x86 -b 64 -e anal.onchange=true
|
||||
CMDS=<<EOF
|
||||
wa jne 6 @ 2
|
||||
wa ret @ 8
|
||||
@ -61,7 +61,7 @@ RUN
|
||||
NAME=Write misaligns jump instruction, control flow is reanalyzed
|
||||
FILE=-
|
||||
BROKEN=1
|
||||
ARGS=-a x86 -b 64 -e anal.detectwrites=true
|
||||
ARGS=-a x86 -b 64 -e anal.onchange=true
|
||||
CMDS=<<EOF
|
||||
wx e80200000075020000c3
|
||||
af
|
||||
@ -108,7 +108,7 @@ RUN
|
||||
NAME=Write reanalysis keeps already unreachable block
|
||||
BROKEN=1
|
||||
FILE=-
|
||||
ARGS=-a x86 -b 64 -e anal.detectwrites=true
|
||||
ARGS=-a x86 -b 64 -e anal.onchange=true
|
||||
CMDS=<<EOF
|
||||
wx 0000c300c3
|
||||
af
|
||||
@ -136,7 +136,7 @@ RUN
|
||||
NAME=Write reanalysis of child of non-modified block
|
||||
FILE=-
|
||||
BROKEN=1
|
||||
ARGS=-a x86 -b 64 -e anal.detectwrites=true
|
||||
ARGS=-a x86 -b 64 -e anal.onchange=true
|
||||
CMDS=<<EOF
|
||||
wx eb020000000075fac3
|
||||
af
|
||||
|
Loading…
Reference in New Issue
Block a user