* debug.h (being_debugged): New macro.
* dtable.cc (dtable::extend): Use new macro. * exceptions.cc (try_to_debug): Ditto. * strace.cc (strace::hello): Only output debugging info when we think we're being debugged.
This commit is contained in:
@ -393,7 +393,7 @@ try_to_debug (bool waitloop)
|
||||
if (!waitloop)
|
||||
return 1;
|
||||
SetThreadPriority (hMainThread, THREAD_PRIORITY_IDLE);
|
||||
while (!IsDebuggerPresent ())
|
||||
while (!being_debugged ())
|
||||
/* spin */;
|
||||
Sleep (4000);
|
||||
small_printf ("*** continuing from debugger call\n");
|
||||
|
Reference in New Issue
Block a user