Skip to content

Commit

Permalink
Enable debugger gui only if available (wx handling was incorrect).
Browse files Browse the repository at this point in the history
  • Loading branch information
vruppert committed Jun 4, 2024
1 parent f3e2cbf commit 730fe8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bochs/gui/siminterface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -922,11 +922,11 @@ int bx_real_sim_c::configuration_interface(const char *ignore, ci_command_t comm
BX_PANIC(("no configuration interface was loaded"));
return -1;
}
if (!strcmp(registered_ci_name, "wx"))
if (!strcmp(registered_ci_name, "wx")) {
wxsel = 1;
else
} else {
wxsel = 0;
bx_debug_gui = wxsel;
}
if (command == CI_START) {
ci_started = 1;
} else if (command == CI_SHUTDOWN) {
Expand Down
1 change: 1 addition & 0 deletions bochs/gui/wx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,7 @@ void bx_wx_gui_c::specific_init(int argc, char **argv, unsigned headerbar_y)
}

#if BX_DEBUGGER && BX_DEBUGGER_GUI
SIM->set_debug_gui(1);
#ifdef WIN32
// on Windows the debugger gui must run in a separate thread
DWORD threadID;
Expand Down

0 comments on commit 730fe8e

Please sign in to comment.