From b6080e1701a93bcf224b503873e7133bdc5e8373 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Sat, 16 Dec 2017 10:54:45 +0100 Subject: [PATCH] fixed #270 --- src/debugger/Debugger.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debugger/Debugger.cxx b/src/debugger/Debugger.cxx index 1f4a5c16a..58efb4265 100644 --- a/src/debugger/Debugger.cxx +++ b/src/debugger/Debugger.cxx @@ -530,7 +530,7 @@ uInt16 Debugger::windStates(uInt16 numStates, bool unwind, string& message) { RewindManager& r = myOSystem.state().rewindManager(); - mySystem.clearDirtyPages(); + saveOldState(); unlockBankswitchState(); @@ -617,6 +617,7 @@ void Debugger::setStartState() // Save initial state and add it to the rewind list (except when in currently rewinding) RewindManager& r = myOSystem.state().rewindManager(); saveOldState(false); + // avoid invalidating future states when entering the debugger during rewind if (r.atLast()) addState("enter debugger");