From 0a207b50ce4ab6d2ae9f3c67c90e3917fac3460c Mon Sep 17 00:00:00 2001 From: urchlay Date: Thu, 23 Jun 2005 02:10:11 +0000 Subject: [PATCH] This fixes the "stale prompt syndrome" for the "frame" command, but I'm not 100% sure it doesn't break anything else. Steve...? git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@547 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/debugger/Debugger.cxx | 3 ++- stella/src/debugger/DebuggerParser.cxx | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/stella/src/debugger/Debugger.cxx b/stella/src/debugger/Debugger.cxx index 792f02549..36b08eaa9 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.28 2005-06-22 20:25:19 urchlay Exp $ +// $Id: Debugger.cxx,v 1.29 2005-06-23 02:10:11 urchlay Exp $ //============================================================================ #include "bspf.hxx" @@ -570,6 +570,7 @@ string Debugger::disassemble(int start, int lines) { // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void Debugger::nextFrame() { myOSystem->frameBuffer().advance(); + myOSystem->frameBuffer().refresh(true); // Stephen, does this break anything? --Brian myBaseDialog->loadConfig(); } diff --git a/stella/src/debugger/DebuggerParser.cxx b/stella/src/debugger/DebuggerParser.cxx index 976d16084..8e7a52a3d 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.27 2005-06-23 01:10:25 urchlay Exp $ +// $Id: DebuggerParser.cxx,v 1.28 2005-06-23 02:10:11 urchlay Exp $ //============================================================================ #include "bspf.hxx" @@ -557,12 +557,12 @@ string DebuggerParser::run(const string& command) { } else if(subStringMatch(verb, "disasm")) { return disasm(); } else if(subStringMatch(verb, "frame")) { - /* // FIXME: make multiple frames work! - int count = 0; + /* + int count = 1; if(argCount != 0) count = args[0]; + cerr << count << endl; for(int i=0; inextFrame(); */ debugger->nextFrame(); return "advanced frame";