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/dtable.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/dtable.cc') diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index 2a43b0bfd..f43baea29 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -92,7 +92,7 @@ dtable::extend (int howmuch) void dtable::get_debugger_info () { - if (IsDebuggerPresent ()) + if (being_debugged ()) { char std[3][sizeof ("/dev/ttyNNNN")]; std[0][0] = std[1][0] = std [2][0] = '\0'; -- cgit v1.2.3