Skip to content

Commit f21ae3e

Browse files
authored
🐛 Skip breakpoint at current pc when doing step over when doing call/indirect call (#219)
1 parent 4ca4240 commit f21ae3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Debug/debugger.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ void Debugger::handleSTEP(Module *m, RunningState *program_state) {
413413
}
414414

415415
void Debugger::handleSTEPOver(Module *m, RunningState *program_state) {
416+
this->skipBreakpoint = m->pc_ptr;
416417
uint8_t const opcode = *m->pc_ptr;
417418
if (opcode == 0x10) { // step over direct call
418419
this->mark = m->pc_ptr + 2;

0 commit comments

Comments
 (0)