Showing the changes to src/exec/debugger.cpp (1 of 6 files). Show all
Unified · Split
| @@ -630,8 +630,7 @@ namespace · 629 unmodified lines | |||
| 630 | const auto &r = *cxt.current_register; | 630 | const auto &r = *cxt.current_register; |
| 631 | const auto &code_section = r.module_ref->code_section; | 631 | const auto &code_section = r.module_ref->code_section; |
| 632 | 632 | ||
| 633 | // The current PC is actually the next PC to execute. | 633 | auto begin_pc = r.pc; |
| 634 | auto begin_pc = r.pc == 0 ? r.pc : r.pc - 1; | ||
| 635 | auto end_pc = begin_pc; | 634 | auto end_pc = begin_pc; |
| 636 | if (absolute_pc) | 635 | if (absolute_pc) |
| 637 | { | 636 | { |