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
This commit is contained in:
urchlay 2005-06-18 07:12:53 +00:00
parent 999f4b52b6
commit e681c06799
3 changed files with 14 additions and 4 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of // See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES. // 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" #include "bspf.hxx"
@ -425,3 +425,8 @@ string Debugger::disassemble(int start, int lines) {
return result; return result;
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Debugger::nextFrame() {
myOSystem->frameBuffer().advance();
}

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of // See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES. // 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 #ifndef DEBUGGER_HXX
@ -49,7 +49,7 @@ enum {
for all debugging operations in Stella (parser, 6502 debugger, etc). for all debugging operations in Stella (parser, 6502 debugger, etc).
@author Stephen Anthony @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 class Debugger : public DialogContainer
{ {
@ -153,6 +153,7 @@ class Debugger : public DialogContainer
void toggleD(); void toggleD();
void reset(); void reset();
void autoLoadSymbols(string file); void autoLoadSymbols(string file);
void nextFrame();
void formatFlags(int f, char *out); void formatFlags(int f, char *out);
EquateList *equates(); EquateList *equates();

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of // See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES. // 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" #include "bspf.hxx"
@ -321,6 +321,9 @@ string DebuggerParser::run(const string& command) {
return listBreaks(); return listBreaks();
} else if(subStringMatch(verb, "disasm")) { } else if(subStringMatch(verb, "disasm")) {
return disasm(); return disasm();
} else if(subStringMatch(verb, "frame")) {
debugger->nextFrame();
return "OK";
} else if(subStringMatch(verb, "clearbreaks")) { } else if(subStringMatch(verb, "clearbreaks")) {
//debugger->clearAllBreakPoints(); //debugger->clearAllBreakPoints();
return "cleared all breakpoints"; return "cleared all breakpoints";
@ -337,6 +340,7 @@ string DebuggerParser::run(const string& command) {
"d - Toggle Decimal Flag\n" "d - Toggle Decimal Flag\n"
"disasm - Disassemble (from current PC)\n" "disasm - Disassemble (from current PC)\n"
"disasm xx - Disassemble (from address xx)\n" "disasm xx - Disassemble (from address xx)\n"
"frame - Advance to next TIA frame, then break\n"
"listbreaks - List all breakpoints\n" "listbreaks - List all breakpoints\n"
"loadsym f - Load DASM symbols from file f\n" "loadsym f - Load DASM symbols from file f\n"
"n - Toggle Negative Flag\n" "n - Toggle Negative Flag\n"