Implement step over rep instructions

This commit is contained in:
skuater 2014-10-23 00:46:19 +02:00 committed by pancake
parent 8b3cdac3df
commit 13ba5d0742

View File

@ -443,6 +443,12 @@ R_API int r_debug_step_over(RDebug *dbg, int steps) {
eprintf ("Could not step over call @ 0x%"PFMT64x"\n", pc);
return R_FALSE;
}
} else if ((op.prefix & (R_ANAL_OP_PREFIX_REP | R_ANAL_OP_PREFIX_REPNE | R_ANAL_OP_PREFIX_LOCK))) {
//eprintf ("REP: skip to next instruction...\n");
if (!r_debug_continue_until (dbg, pc+op.size)) {
eprintf ("step over failed over rep\n");
return R_FALSE;
}
} else r_debug_step (dbg, 1);
}