fix the dsf to use step over, so that it functions properly

not a full fix for making a good `finish` equivalent, but better than
nothing.
This commit is contained in:
Lowly Worm 2016-10-29 15:46:27 -07:00
parent 697efb1b51
commit 7b70402037

View File

@ -330,10 +330,8 @@ static int step_until_eof(RCore *core) {
ut64 off, now = r_debug_reg_get (core->dbg, "SP");
r_cons_break (NULL, NULL);
do {
if (r_cons_singleton ()->breaked)
break;
if (!r_debug_step (core->dbg, 1))
break;
// XXX (HACK!)
r_core_cmd0 (core, "dso");
off = r_debug_reg_get (core->dbg, "SP");
// check breakpoint here
} while (off <= now);