diff options
Diffstat (limited to 'linuxthreads_db')
-rw-r--r-- | linuxthreads_db/ChangeLog | 5 | ||||
-rw-r--r-- | linuxthreads_db/td_init.c | 2 | ||||
-rw-r--r-- | linuxthreads_db/thread_dbP.h | 7 |
3 files changed, 13 insertions, 1 deletions
diff --git a/linuxthreads_db/ChangeLog b/linuxthreads_db/ChangeLog index 0ad9fd12f9..d3033cdf1d 100644 --- a/linuxthreads_db/ChangeLog +++ b/linuxthreads_db/ChangeLog @@ -1,3 +1,8 @@ +1999-11-22 Ulrich Drepper <drepper@cygnus.com> + + * thread_dbP.h (LOG): Only print message if __td_debug is nonzero. + * td_init.c: Add __td_debug. + 1999-11-12 Ulrich Drepper <drepper@cygnus.com> * td_ta_thr_iter.c: Start copying list of descriptors from right diff --git a/linuxthreads_db/td_init.c b/linuxthreads_db/td_init.c index e65edc4e93..683aec4270 100644 --- a/linuxthreads_db/td_init.c +++ b/linuxthreads_db/td_init.c @@ -20,6 +20,8 @@ #include "thread_dbP.h" +int __td_debug; + td_err_e td_init (void) diff --git a/linuxthreads_db/thread_dbP.h b/linuxthreads_db/thread_dbP.h index 7e9fb486c6..13e534afe6 100644 --- a/linuxthreads_db/thread_dbP.h +++ b/linuxthreads_db/thread_dbP.h @@ -9,7 +9,12 @@ /* Comment out the following for less verbose output. */ -#define LOG(c) __libc_write (2, c "\n", strlen (c "\n")) +#ifndef NDEBUG +# define LOG(c) if (__td_debug) __libc_write (2, c "\n", strlen (c "\n")) +extern int __td_debug; +#else +# define LOG(c) +#endif /* Handle for a process. This type is opaque. */ |