aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads_db
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-22 20:53:18 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-22 20:53:18 +0000
commit20bdb31bfc27e044290756a681e3329f6e677ab7 (patch)
tree83fcba351926c80cad192dfb56ee8e42ac3535d3 /linuxthreads_db
parentba90ec1141c97aa17bfe701f0f9def3f7544895f (diff)
downloadglibc-20bdb31bfc27e044290756a681e3329f6e677ab7.zip
glibc-20bdb31bfc27e044290756a681e3329f6e677ab7.tar.gz
glibc-20bdb31bfc27e044290756a681e3329f6e677ab7.tar.bz2
Update.
1999-11-22 Ulrich Drepper <drepper@cygnus.com> * 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.
Diffstat (limited to 'linuxthreads_db')
-rw-r--r--linuxthreads_db/ChangeLog5
-rw-r--r--linuxthreads_db/td_init.c2
-rw-r--r--linuxthreads_db/thread_dbP.h7
3 files changed, 13 insertions, 1 deletions
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 <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 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. */