mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 20:22:38 +00:00
also don't analyze function twice and get normal xref-s for aac
This commit is contained in:
parent
2bcf5cc8c2
commit
ca26ad47da
@ -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;
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user