From 918a268c8085f18ff6683a9b5979411c064ace82 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 27 May 2002 02:25:28 +0000 Subject: * 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. --- winsup/cygwin/exceptions.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/exceptions.cc') diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 1bca810dd..8e00e072f 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -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"); -- cgit v1.2.3