- fixed end of thread in debugger mode (always dump cpu state to log file)
- hide debug console before showing "Bochs stopped" message box
This commit is contained in:
parent
10235cb1ba
commit
3dfc9b4d5a
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: siminterface.cc,v 1.164 2006-06-16 09:10:26 vruppert Exp $
|
||||
// $Id: siminterface.cc,v 1.165 2006-09-04 18:36:47 vruppert Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// See siminterface.h for description of the siminterface concept.
|
||||
@ -596,8 +596,12 @@ void bx_real_sim_c::periodic()
|
||||
sim_to_ci_event (&tick);
|
||||
if (tick.retcode < 0) {
|
||||
BX_INFO(("Bochs thread has been asked to quit."));
|
||||
#if !BX_DEBUGGER
|
||||
bx_atexit();
|
||||
quit_sim(0);
|
||||
#else
|
||||
bx_dbg_exit(0);
|
||||
#endif
|
||||
}
|
||||
static int refresh_counter = 0;
|
||||
if (++refresh_counter == 50) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// $Id: wxmain.cc,v 1.145 2006-09-03 16:55:35 vruppert Exp $
|
||||
// $Id: wxmain.cc,v 1.146 2006-09-04 18:36:47 vruppert Exp $
|
||||
/////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// wxmain.cc implements the wxWidgets frame, toolbar, menus, and dialogs.
|
||||
@ -951,6 +951,9 @@ void MyFrame::simStatusChanged(StatusChange change, bx_bool popupNotify) {
|
||||
menuSimulate->Enable(ID_Simulate_PauseResume, FALSE);
|
||||
menuSimulate->Enable(ID_Simulate_Stop, FALSE);
|
||||
menuSimulate->SetLabel(ID_Simulate_PauseResume, wxT("&Pause"));
|
||||
#if BX_DEBUGGER
|
||||
showDebugLog->Show(FALSE);
|
||||
#endif
|
||||
// This should only be used if the simulation stops due to error.
|
||||
// Obviously if the user asked it to stop, they don't need to be told.
|
||||
if (popupNotify)
|
||||
|
Loading…
x
Reference in New Issue
Block a user