mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-06 13:18:20 +00:00
Stop function analysis at jump
This commit is contained in:
parent
0f1079af9c
commit
cc102cbd6a
@ -146,6 +146,13 @@ R_API int r_anal_fcn(RAnal *anal, RAnalFunction *fcn, ut64 addr, ut8 *buf, ut64
|
||||
}
|
||||
switch (op.type) {
|
||||
case R_ANAL_OP_TYPE_JMP:
|
||||
if (!r_anal_fcn_xref_add (anal, fcn, op.addr, op.jump,
|
||||
R_ANAL_REF_TYPE_CODE)) {
|
||||
r_anal_op_fini (&op);
|
||||
return R_ANAL_RET_ERROR;
|
||||
} else {
|
||||
return R_ANAL_RET_END;
|
||||
}
|
||||
case R_ANAL_OP_TYPE_CJMP:
|
||||
#if 0
|
||||
// do not add xrefs for cjmps?
|
||||
|
Loading…
Reference in New Issue
Block a user