From d5a470cbccdb4032e81435db43dbdcece32e059d Mon Sep 17 00:00:00 2001 From: stephena Date: Mon, 17 Nov 2014 12:47:33 +0000 Subject: [PATCH] Debugger reset command now does a full system reset. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3082 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- Changes.txt | 3 +++ src/debugger/Debugger.cxx | 2 +- src/debugger/DebuggerParser.cxx | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Changes.txt b/Changes.txt index 9f23c2a33..737a4b89c 100644 --- a/Changes.txt +++ b/Changes.txt @@ -23,6 +23,9 @@ Because of this, the 32-bit version is also discontinued, as 10.7 is 64-bit Intel only. + * The debugger 'reset' command now does a complete system reset, + instead of simply setting the PC to the reset vector address. + * Updated included PNG library to latest stable version. -Have fun! diff --git a/src/debugger/Debugger.cxx b/src/debugger/Debugger.cxx index 63f703c7d..6ae45f552 100644 --- a/src/debugger/Debugger.cxx +++ b/src/debugger/Debugger.cxx @@ -260,7 +260,7 @@ const string Debugger::invIfChanged(int reg, int oldReg) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void Debugger::reset() { - myCpuDebug->setPC(dpeek(0xfffc)); + mySystem.reset(); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/debugger/DebuggerParser.cxx b/src/debugger/DebuggerParser.cxx index 45ddf2036..110925afc 100644 --- a/src/debugger/DebuggerParser.cxx +++ b/src/debugger/DebuggerParser.cxx @@ -1192,7 +1192,7 @@ void DebuggerParser::executeReset() { debugger.reset(); debugger.rom().invalidate(); - commandResult << "reset CPU"; + commandResult << "reset system"; } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -