Save old state for "RunTo" and "RunToPC" debugger commands (fixes #650)

This commit is contained in:
thrust26 2020-06-02 18:28:38 +02:00
parent ced671c972
commit 9e78f3d630
1 changed files with 4 additions and 0 deletions

View File

@ -1733,6 +1733,8 @@ void DebuggerParser::executeRunTo()
const CartDebug& cartdbg = debugger.cartDebug();
const CartDebug::DisassemblyList& list = cartdbg.disassembly().list;
debugger.saveOldState();
uInt32 count = 0, max_iterations = uInt32(list.size());
// Create a progress dialog box to show the progress searching through the
@ -1776,6 +1778,8 @@ void DebuggerParser::executeRunToPc()
const CartDebug& cartdbg = debugger.cartDebug();
const CartDebug::DisassemblyList& list = cartdbg.disassembly().list;
debugger.saveOldState();
uInt32 count = 0;
bool done = false;
constexpr uInt32 max_iterations = 1000000;