1 /* Private header for thread debug library. */
3 #define _THREAD_DBP_H 1
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. */
19 /* Delivered by the debugger and we have to pass it back in the
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. */
37 /* Size of 2nd level array for thread-local data keys. */
38 int pthread_key_2ndlevel_size
;
40 /* Sizeof struct _pthread_descr_struct. */
45 #endif /* thread_dbP.h */