mirror of https://github.com/stella-emu/stella.git
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:
parent
999f4b52b6
commit
e681c06799
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue