* 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:
Christopher Faylor
2002-05-27 02:25:28 +00:00
parent 0cfbfc249f
commit 918a268c80
5 changed files with 16 additions and 2 deletions

View File

@ -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");