Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-05-27 06:25:28 +0400
committerChristopher Faylor <me@cgf.cx>2002-05-27 06:25:28 +0400
commit918a268c8085f18ff6683a9b5979411c064ace82 (patch)
treeedd780e3950fc24cc81f9f39d5a6d1fd6e449d63 /winsup/cygwin/strace.cc
parent0cfbfc249f26bec6c407bb54d8e5e7a65c95afe0 (diff)
* 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/strace.cc')
-rw-r--r--winsup/cygwin/strace.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/strace.cc b/winsup/cygwin/strace.cc
index afb388206..7c93865f1 100644
--- a/winsup/cygwin/strace.cc
+++ b/winsup/cygwin/strace.cc
@@ -38,6 +38,9 @@ strace::hello()
return;
}
+ if (!being_debugged ())
+ return;
+
__small_sprintf (buf, "cYg%8x %x", _STRACE_INTERFACE_ACTIVATE_ADDR, &active);
OutputDebugString (buf);