mirror of https://github.com/stella-emu/stella.git
Save old state for "RunTo" and "RunToPC" debugger commands (fixes #650)
This commit is contained in:
parent
ced671c972
commit
9e78f3d630
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue