glibc/linuxthreads_db/thread_dbP.h
Ulrich Drepper 03fc7ab6ed Update.
* sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Add more pr* types used
	by the debugger.
	* sysdeps/unix/sysv/linux/arm/sys/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/i386/sys/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/sys/procfs.h: Likewise.

1999-11-01  Ulrich Drepper  <drepper@cygnus.com>
1999-11-02 16:04:00 +00:00

45 lines
1.0 KiB
C

/* Private header for thread debug library. */
#ifndef _THREAD_DBP_H
#define _THREAD_DBP_H 1
#include <string.h>
#include "proc_service.h"
#include "thread_db.h"
#include "../linuxthreads/internals.h"
/* Comment out the following for less verbose output. */
#define LOG(c) __libc_write (2, c "\n", strlen (c "\n"))
/* Handle for a process. This type is opaque. */
struct td_thragent
{
/* Delivered by the debugger and we have to pass it back in the
proc callbacks. */
struct ps_prochandle *ph;
/* Some cached information. */
/* Address of the `__pthread_handles' array. */
struct pthread_handle_struct *handles;
/* Address of the `pthread_kyes' array. */
struct pthread_key_struct *keys;
/* Maximum number of threads. */
int pthread_threads_max;
/* Maximum number of thread-local data keys. */
int pthread_keys_max;
/* Size of 2nd level array for thread-local data keys. */
int pthread_key_2ndlevel_size;
/* Sizeof struct _pthread_descr_struct. */
int sizeof_descr;
};
#endif /* thread_dbP.h */