History

Update registers struct to include next_pc member. This allows the pc member to always point at the current PC instead of having been incremented to the 'next' PC.

arr committed 9 years ago

Commit a46f30c1 parent 87f2d5b6 files · +67 −68Browse files

Showing the changes to src/exec/debugger.cpp (1 of 6 files). Show all

Unified · Split

src/exec/debugger.cpp+1−2
@@ -630,8 +630,7 @@ namespace · 629 unmodified lines
630630 const auto &r = *cxt.current_register;
631631 const auto &code_section = r.module_ref->code_section;
632632
633− // The current PC is actually the next PC to execute.
634− auto begin_pc = r.pc == 0 ? r.pc : r.pc - 1;
633+ auto begin_pc = r.pc;
635634 auto end_pc = begin_pc;
636635 if (absolute_pc)
637636 {