also don't analyze function twice and get normal xref-s for aac

This commit is contained in:
Dima Turchenkov 2015-12-14 19:03:20 +03:00 committed by pancake
parent 2bcf5cc8c2
commit ca26ad47da
2 changed files with 2 additions and 1 deletions

View File

@ -985,6 +985,7 @@ R_API int r_core_anal_fcn(RCore *core, ut64 at, ut64 from, int reftype, int dept
fcn = r_anal_get_fcn_in (core->anal, at, 0);
if (fcn) {
if (fcn->addr == at) return 0; // already analyzed function
if (from >= fcn->addr && (from - fcn->addr) < fcn->size) { // inner function
RAnalRef *ref;

View File

@ -2219,7 +2219,7 @@ static void cmd_anal_calls(RCore *core, const char *input) {
if (r_anal_op (core->anal, &op, addr, buf+bufi, 4096 - bufi)) {
if (op.size < 1) op.size = minop; // XXX must be +4 on arm/mips/.. like we do in disasm.c
if (op.type == R_ANAL_OP_TYPE_CALL) {
r_core_anal_fcn (core, op.jump, UT64_MAX,
r_core_anal_fcn (core, op.jump, addr,
R_ANAL_REF_TYPE_NULL, depth);
}
} else {