Skip to content

Commit

Permalink
🐛 Skip breakpoint at current pc when doing step over when doing call/…
Browse files Browse the repository at this point in the history
…indirect call (#219)
  • Loading branch information
MaartenS11 authored Dec 19, 2023
1 parent 4ca4240 commit f21ae3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Debug/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ void Debugger::handleSTEP(Module *m, RunningState *program_state) {
}

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

0 comments on commit f21ae3e

Please sign in to comment.