summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads_db/thread_dbP.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-06 14:49:17 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-06 14:49:17 +0000
commit7711a9b8e870372e19f6bea41a70baa0ea2878dd (patch)
tree25e6076580afd740b38ebb92b827c8ca0438baa9 /libpthread/linuxthreads_db/thread_dbP.h
parent0a2d7c0bb713079a668162883e5ccdacf92f4beb (diff)
Several pthreads updates. Enable linuxthreads_db. Several fixes
related to thread local storage. -Erik
Diffstat (limited to 'libpthread/linuxthreads_db/thread_dbP.h')
-rw-r--r--libpthread/linuxthreads_db/thread_dbP.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/libpthread/linuxthreads_db/thread_dbP.h b/libpthread/linuxthreads_db/thread_dbP.h
index 13e534afe..8e87bae52 100644
--- a/libpthread/linuxthreads_db/thread_dbP.h
+++ b/libpthread/linuxthreads_db/thread_dbP.h
@@ -8,6 +8,24 @@
#include "../linuxthreads/internals.h"
+/* Indeces for the symbol names. */
+enum
+ {
+ PTHREAD_THREADS_EVENTS = 0,
+ PTHREAD_LAST_EVENT,
+ PTHREAD_HANDLES_NUM,
+ PTHREAD_HANDLES,
+ PTHREAD_KEYS,
+ LINUXTHREADS_PTHREAD_THREADS_MAX,
+ LINUXTHREADS_PTHREAD_KEYS_MAX,
+ LINUXTHREADS_PTHREAD_SIZEOF_DESCR,
+ LINUXTHREADS_CREATE_EVENT,
+ LINUXTHREADS_DEATH_EVENT,
+ LINUXTHREADS_REAP_EVENT,
+ NUM_MESSAGES
+ };
+
+
/* Comment out the following for less verbose output. */
#ifndef NDEBUG
# define LOG(c) if (__td_debug) __libc_write (2, c "\n", strlen (c "\n"))
@@ -80,4 +98,8 @@ ta_ok (const td_thragent_t *ta)
return runp != NULL;
}
+
+/* Internal wrapper around ps_pglobal_lookup. */
+extern int td_lookup (struct ps_prochandle *ps, int idx, psaddr_t *sym_addr);
+
#endif /* thread_dbP.h */