summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-05-27 02:25:28 +0000
committerChristopher Faylor <me@cgf.cx>2002-05-27 02:25:28 +0000
commit918a268c8085f18ff6683a9b5979411c064ace82 (patch)
treeedd780e3950fc24cc81f9f39d5a6d1fd6e449d63 /winsup/cygwin/exceptions.cc
parent0cfbfc249f26bec6c407bb54d8e5e7a65c95afe0 (diff)
downloadcygnal-918a268c8085f18ff6683a9b5979411c064ace82.tar.gz
cygnal-918a268c8085f18ff6683a9b5979411c064ace82.tar.bz2
cygnal-918a268c8085f18ff6683a9b5979411c064ace82.zip
* 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.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc2
1 files changed, 1 insertions, 1 deletions
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");