mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-04 12:36:30 +00:00
bp and sp both must be zero
This commit is contained in:
parent
bb6daf8d0f
commit
d4b91790b0
@ -28,7 +28,7 @@ static bool r_anal_emul_init(RCore *core, bool *state) {
|
||||
r_config_set (core->config, "esil.nonull", "true");
|
||||
const char *bp = r_reg_get_name (core->anal->reg, R_REG_NAME_BP);
|
||||
const char *sp = r_reg_get_name (core->anal->reg, R_REG_NAME_SP);
|
||||
if ((bp && !r_reg_getv (core->anal->reg, bp)) || (sp && !r_reg_getv (core->anal->reg, sp))) {
|
||||
if ((bp && !r_reg_getv (core->anal->reg, bp)) && (sp && !r_reg_getv (core->anal->reg, sp))) {
|
||||
eprintf ("Stack isn't initiatized.\n");
|
||||
eprintf ("Try running aei and aeim commands before aftm for default stack initialization\n");
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user