mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-26 15:54:59 +00:00
Make Travis Green
This commit is contained in:
parent
5a899f2846
commit
a24eb639e0
@ -826,22 +826,26 @@ int main(int argc, char **argv) {
|
||||
szb = strlen ((const char *) bufb);
|
||||
mode = MODE_DIFF;
|
||||
} else if (mode == MODE_GRAPH) {
|
||||
int depth = r_config_get_i (c->config, "anal.depth");
|
||||
if (depth < 1) {
|
||||
depth = 64;
|
||||
}
|
||||
char *words = strdup (addr? addr: "0");
|
||||
char *second = strstr (words, ",");
|
||||
if (second) {
|
||||
*second++ = 0;
|
||||
ut64 off = r_num_math (c->num, words);
|
||||
// define the same function at each offset
|
||||
r_core_anal_fcn (c, off, UT64_MAX, R_ANAL_REF_TYPE_NULL, 0);
|
||||
r_core_anal_fcn (c, off, UT64_MAX, R_ANAL_REF_TYPE_NULL, depth);
|
||||
r_core_anal_fcn (c2, r_num_math (c2->num, second),
|
||||
UT64_MAX, R_ANAL_REF_TYPE_NULL, 0);
|
||||
UT64_MAX, R_ANAL_REF_TYPE_NULL, depth);
|
||||
r_core_gdiff (c, c2);
|
||||
r_core_anal_graph (c, off, R_CORE_ANAL_GRAPHBODY | R_CORE_ANAL_GRAPHDIFF);
|
||||
} else {
|
||||
r_core_anal_fcn (c, r_num_math (c->num, words),
|
||||
UT64_MAX, R_ANAL_REF_TYPE_NULL, 0);
|
||||
UT64_MAX, R_ANAL_REF_TYPE_NULL, depth);
|
||||
r_core_anal_fcn (c2, r_num_math (c2->num, words),
|
||||
UT64_MAX, R_ANAL_REF_TYPE_NULL, 0);
|
||||
UT64_MAX, R_ANAL_REF_TYPE_NULL, depth);
|
||||
r_core_gdiff (c, c2);
|
||||
r_core_anal_graph (c, r_num_math (c->num, addr),
|
||||
R_CORE_ANAL_GRAPHBODY | R_CORE_ANAL_GRAPHDIFF);
|
||||
|
@ -539,7 +539,8 @@ static int r_anal_analyze_fcn_refs(RCore *core, RAnalFunction *fcn, int depth) {
|
||||
|
||||
static int core_anal_fcn(RCore *core, ut64 at, ut64 from, int reftype, int depth) {
|
||||
if (depth < 0) {
|
||||
// eprintf ("Too deep for 0x%08"PFMT64x"\n", at);
|
||||
// printf ("Too deep for 0x%08"PFMT64x"\n", at);
|
||||
// r_sys_backtrace ();
|
||||
return false;
|
||||
}
|
||||
int has_next = r_config_get_i (core->config, "anal.hasnext");
|
||||
|
Loading…
x
Reference in New Issue
Block a user