- fix minor compile problem with wxWindows and no debugger.

- only show continue,stop,step,commit buttons when debugger on.
- modified: gui/wxdialog.cc gui/wxmain.cc
This commit is contained in:
Bryce Denney 2002-09-13 19:51:06 +00:00
parent 565b3846c9
commit 98d4c2f823
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////
// $Id: wxdialog.cc,v 1.32 2002-09-13 19:39:38 bdenney Exp $
// $Id: wxdialog.cc,v 1.33 2002-09-13 19:51:06 bdenney Exp $
/////////////////////////////////////////////////////////////////
//
// misc/wxdialog.cc
@ -1846,10 +1846,13 @@ CpuRegistersDialog::CpuRegistersDialog(
AddParamList (testList, column);
// add buttons
#if BX_DEBUGGER
// only show these if debugger is enabled
AddButton (ID_Debug_Continue, BTNLABEL_DEBUG_CONTINUE);
AddButton (ID_Debug_Stop, BTNLABEL_DEBUG_STOP);
AddButton (ID_Debug_Step, BTNLABEL_DEBUG_STEP);
AddButton (ID_Debug_Commit, BTNLABEL_DEBUG_COMMIT);
#endif
AddButton (ID_Close, BTNLABEL_DEBUG_CLOSE);
}

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////
// $Id: wxmain.cc,v 1.44 2002-09-13 19:39:38 bdenney Exp $
// $Id: wxmain.cc,v 1.45 2002-09-13 19:51:06 bdenney Exp $
/////////////////////////////////////////////////////////////////
//
// wxmain.cc implements the wxWindows frame, toolbar, menus, and dialogs.
@ -695,11 +695,13 @@ void MyFrame::OnShowKeyboard(wxCommandEvent& WXUNUSED(event))
void
MyFrame::DebugBreak ()
{
#if BX_DEBUGGER
if (debugCommand) {
delete debugCommand;
debugCommand = NULL;
}
SIM->debug_break ();
#endif
}
void