From bc0dce84870bb66e80f96d8da53d85d0cad5cba9 Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Sat, 28 Jan 2023 10:22:07 +0100 Subject: [PATCH] added two missing debugger save states --- src/debugger/DebuggerParser.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/debugger/DebuggerParser.cxx b/src/debugger/DebuggerParser.cxx index e58ddcf21..e71555782 100644 --- a/src/debugger/DebuggerParser.cxx +++ b/src/debugger/DebuggerParser.cxx @@ -1817,7 +1817,11 @@ void DebuggerParser::executePalette() // "pc" void DebuggerParser::executePc() { + ostringstream msg; + debugger.cpuDebug().setPC(args[0]); + msg << "Set PC @ " << Base::HEX4 << args[0]; + debugger.addState(msg.str()); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2018,9 +2022,15 @@ void DebuggerParser::executeRunToPc() progress.close(); if(done) + { + ostringstream msg; + commandResult << "Set PC to $" << Base::HEX4 << args[0] << " in " << dec << count << " instructions"; + msg << "RunTo PC @ " << Base::HEX4 << args[0]; + debugger.addState(msg.str()); + } else commandResult << "PC $" << Base::HEX4 << args[0] << " not reached or found in "