From 20bdb31bfc27e044290756a681e3329f6e677ab7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 22 Nov 1999 20:53:18 +0000 Subject: Update. 1999-11-22 Ulrich Drepper * internals.h: Add prototype for __pthread_manager_event. * manager.c (__pthread_manager_event): New function. (pthread_start_thread_event): Correct computation of self. Use INIT_THREAD_SELF. * pthread.c (__pthread_manager_thread): Initialize p_lock. (__pthread_initialize_manager): Respect event flags also for creation of the manager thread. --- linuxthreads_db/ChangeLog | 5 +++++ linuxthreads_db/td_init.c | 2 ++ linuxthreads_db/thread_dbP.h | 7 ++++++- 3 files changed, 13 insertions(+), 1 deletion(-) (limited to 'linuxthreads_db') diff --git a/linuxthreads_db/ChangeLog b/linuxthreads_db/ChangeLog index 0ad9fd1..d3033cd 100644 --- a/linuxthreads_db/ChangeLog +++ b/linuxthreads_db/ChangeLog @@ -1,3 +1,8 @@ +1999-11-22 Ulrich Drepper + + * thread_dbP.h (LOG): Only print message if __td_debug is nonzero. + * td_init.c: Add __td_debug. + 1999-11-12 Ulrich Drepper * 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 e65edc4..683aec4 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 7e9fb48..13e534a 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. */ -- cgit v1.1