From 33155b9138b71da9b25cda39afa38f1e625782bb Mon Sep 17 00:00:00 2001 From: urchlay Date: Thu, 16 Jun 2005 16:18:57 +0000 Subject: [PATCH] The processor state + disassembly now appears as part of the prompt, rather than the result of each command. This makes breakpoints a little nicer (you see the state as soon as you hit the breakpoint). git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@511 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/debugger/DebuggerParser.cxx | 4 ++-- stella/src/gui/PromptWidget.cxx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/stella/src/debugger/DebuggerParser.cxx b/stella/src/debugger/DebuggerParser.cxx index 46658af84..fc25a0dbc 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.7 2005-06-16 02:16:25 urchlay Exp $ +// $Id: DebuggerParser.cxx,v 1.8 2005-06-16 16:18:57 urchlay Exp $ //============================================================================ #include "bspf.hxx" @@ -303,7 +303,7 @@ string DebuggerParser::run(const string& command) { return "unimplemented command (try \"help\")"; } - result += debugger->state(); + // result += debugger->state(); return result; } diff --git a/stella/src/gui/PromptWidget.cxx b/stella/src/gui/PromptWidget.cxx index d488bd324..596b1d6c6 100644 --- a/stella/src/gui/PromptWidget.cxx +++ b/stella/src/gui/PromptWidget.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: PromptWidget.cxx,v 1.6 2005-06-16 00:56:00 stephena Exp $ +// $Id: PromptWidget.cxx,v 1.7 2005-06-16 16:18:57 urchlay Exp $ // // Based on code from ScummVM - Scumm Interpreter // Copyright (C) 2002-2004 The ScummVM project @@ -174,6 +174,7 @@ bool PromptWidget::handleKeyDown(int ascii, int keycode, int modifiers) delete [] str; } + print( instance()->debugger().state() + "\n"); print(PROMPT); _promptStartPos = _promptEndPos = _currentPos;