From 5b693b960ed838e0dafa42a2ec214a86d7f386ec Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Fri, 13 Sep 2002 20:02:07 +0000 Subject: [PATCH] - only call isSimThread() if compiling with wxWindows --- bochs/gui/siminterface.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bochs/gui/siminterface.cc b/bochs/gui/siminterface.cc index fe84ddba4..09f1ce0f3 100644 --- a/bochs/gui/siminterface.cc +++ b/bochs/gui/siminterface.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: siminterface.cc,v 1.57 2002-09-13 19:39:37 bdenney Exp $ +// $Id: siminterface.cc,v 1.58 2002-09-13 20:02:07 bdenney Exp $ ///////////////////////////////////////////////////////////////////////// // // See siminterface.h for description of the siminterface concept. @@ -527,10 +527,12 @@ void bx_real_sim_c::debug_break () { // this should only be called from the sim_thread. void bx_real_sim_c::debug_interpret_cmd (char *cmd) { +#if BX_WITH_WX if (!isSimThread ()) { fprintf (stderr, "ERROR: debug_interpret_cmd called but not from sim_thread\n"); return; } +#endif bx_dbg_interpret_line (cmd); }