Update.
[glibc.git] / linuxthreads_db / thread_dbP.h
blob1fd09e965b88d3cac463cebfb0a8ec140113cb9e
1 /* Private header for thread debug library. */
2 #ifndef _THREAD_DBP_H
3 #define _THREAD_DBP_H 1
5 #include <string.h>
6 #include "thread_db.h"
7 #include "../linuxthreads/internals.h"
9 #include "proc_service.h"
12 /* Comment out the following for less verbose output. */
13 #define LOG(c) __libc_write (2, c "\n", strlen (c "\n"))
16 /* Handle for a process. This type is opaque. */
17 struct td_thragent
19 /* Delivered by the debugger and we have to pass it back in the
20 proc callbacks. */
21 struct ps_prochandle *ph;
23 /* Some cached information. */
25 /* Address of the `__pthread_handles' array. */
26 struct pthread_handle_struct *handles;
28 /* Address of the `pthread_kyes' array. */
29 struct pthread_key_struct *keys;
31 /* Maximum number of threads. */
32 int pthread_threads_max;
34 /* Maximum number of thread-local data keys. */
35 int pthread_keys_max;
37 /* Size of 2nd level array for thread-local data keys. */
38 int pthread_key_2ndlevel_size;
40 /* Sizeof struct _pthread_descr_struct. */
41 int sizeof_descr;
45 #endif /* thread_dbP.h */