From e681c0679983adec70525948bb93bf0ed297ec34 Mon Sep 17 00:00:00 2001 From: urchlay Date: Sat, 18 Jun 2005 07:12:53 +0000 Subject: [PATCH] Added "frame" command to the prompt, identical to the Frame+1 button. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@524 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/debugger/Debugger.cxx | 7 ++++++- stella/src/debugger/Debugger.hxx | 5 +++-- stella/src/debugger/DebuggerParser.cxx | 6 +++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/stella/src/debugger/Debugger.cxx b/stella/src/debugger/Debugger.cxx index 798b133a8..ac2d24b85 100644 --- a/stella/src/debugger/Debugger.cxx +++ b/stella/src/debugger/Debugger.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: Debugger.cxx,v 1.14 2005-06-17 21:59:53 urchlay Exp $ +// $Id: Debugger.cxx,v 1.15 2005-06-18 07:12:53 urchlay Exp $ //============================================================================ #include "bspf.hxx" @@ -425,3 +425,8 @@ string Debugger::disassemble(int start, int lines) { return result; } + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +void Debugger::nextFrame() { + myOSystem->frameBuffer().advance(); +} diff --git a/stella/src/debugger/Debugger.hxx b/stella/src/debugger/Debugger.hxx index cea19f663..87149c651 100644 --- a/stella/src/debugger/Debugger.hxx +++ b/stella/src/debugger/Debugger.hxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: Debugger.hxx,v 1.12 2005-06-17 21:59:53 urchlay Exp $ +// $Id: Debugger.hxx,v 1.13 2005-06-18 07:12:53 urchlay Exp $ //============================================================================ #ifndef DEBUGGER_HXX @@ -49,7 +49,7 @@ enum { for all debugging operations in Stella (parser, 6502 debugger, etc). @author Stephen Anthony - @version $Id: Debugger.hxx,v 1.12 2005-06-17 21:59:53 urchlay Exp $ + @version $Id: Debugger.hxx,v 1.13 2005-06-18 07:12:53 urchlay Exp $ */ class Debugger : public DialogContainer { @@ -153,6 +153,7 @@ class Debugger : public DialogContainer void toggleD(); void reset(); void autoLoadSymbols(string file); + void nextFrame(); void formatFlags(int f, char *out); EquateList *equates(); diff --git a/stella/src/debugger/DebuggerParser.cxx b/stella/src/debugger/DebuggerParser.cxx index 05efe33b5..02ae9fed8 100644 --- a/stella/src/debugger/DebuggerParser.cxx +++ b/stella/src/debugger/DebuggerParser.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: DebuggerParser.cxx,v 1.10 2005-06-17 21:59:53 urchlay Exp $ +// $Id: DebuggerParser.cxx,v 1.11 2005-06-18 07:12:53 urchlay Exp $ //============================================================================ #include "bspf.hxx" @@ -321,6 +321,9 @@ string DebuggerParser::run(const string& command) { return listBreaks(); } else if(subStringMatch(verb, "disasm")) { return disasm(); + } else if(subStringMatch(verb, "frame")) { + debugger->nextFrame(); + return "OK"; } else if(subStringMatch(verb, "clearbreaks")) { //debugger->clearAllBreakPoints(); return "cleared all breakpoints"; @@ -337,6 +340,7 @@ string DebuggerParser::run(const string& command) { "d - Toggle Decimal Flag\n" "disasm - Disassemble (from current PC)\n" "disasm xx - Disassemble (from address xx)\n" + "frame - Advance to next TIA frame, then break\n" "listbreaks - List all breakpoints\n" "loadsym f - Load DASM symbols from file f\n" "n - Toggle Negative Flag\n"