diff options
Diffstat (limited to 'winsup/cygwin/include/sys/strace.h')
-rw-r--r-- | winsup/cygwin/include/sys/strace.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/include/sys/strace.h b/winsup/cygwin/include/sys/strace.h index 87cc1d785..b43ab886f 100644 --- a/winsup/cygwin/include/sys/strace.h +++ b/winsup/cygwin/include/sys/strace.h @@ -43,7 +43,8 @@ public: int active; int lmicrosec; int execing; - strace() : version(1) {} + int inited; + void hello (); void prntf (unsigned, const char *func, const char *, ...) /*__attribute__ ((regparm(3)))*/; void vprntf (unsigned, const char *func, const char *, va_list ap) /*__attribute__ ((regparm(3)))*/; void wm (int message, int word, int lon) __attribute__ ((regparm(3))); @@ -77,6 +78,13 @@ extern strace strace; #define _STRACE_MALLOC 0x20000 // trace malloc calls #define _STRACE_THREAD 0x40000 // thread-locking calls #define _STRACE_NOTALL 0x80000 // don't include if _STRACE_ALL +#if defined (DEBUGGING) +# define _STRACE_ON strace.active = 1; +# define _STRACE_OFF strace.active = 0; +#else +# define _STRACE_ON +# define _STRACE_OFF +#endif #ifdef __cplusplus extern "C" { |