* gdb.texinfo (SVR4 Process Information, The isatty call)
[deliverable/binutils-gdb.git] / gdb / gdb_thread_db.h
index 8c868c25d8da105cd5d01bfcfa6bdde63cb8e517..0a28534990fb3cf738fad3b16631f97cf46ae8b8 100644 (file)
@@ -11,7 +11,7 @@ typedef unsigned int gdb_uint32_t;
 #define GDB_UINT32_C(c)        c ## U
 #endif
 
-/* Copyright (C) 1999 Free Software Foundation, Inc.
+/* Copyright 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -63,7 +63,8 @@ typedef enum
   TD_NOTSD,      /* No thread-specific data available.  */
   TD_MALLOC,     /* Out of memory.  */
   TD_PARTIALREG,  /* Not entire register set was read or written.  */
-  TD_NOXREGS     /* X register set not available for given thread.  */
+  TD_NOXREGS,    /* X register set not available for given thread.  */
+  TD_NOTALLOC    /* TLS memory not yet allocated.  */
 } td_err_e;
 
 
@@ -198,6 +199,16 @@ typedef struct td_notify
   } u;
 } td_notify_t;
 
+/* Some people still have libc5 or old glibc with no uintptr_t.
+   They lose.  glibc 2.1.3 was released on 2000-02-25, and it has
+   uintptr_t, so it's reasonable to force these people to upgrade.  */
+
+#ifndef HAVE_UINTPTR_T
+#error No uintptr_t available; your C library is too old.
+/* Inhibit further compilation errors after this error.  */
+#define uintptr_t void *
+#endif
+
 /* Structure used to report event.  */
 typedef struct td_event_msg
 {
@@ -281,7 +292,7 @@ typedef struct td_thrinfo
   intptr_t ti_sp;                      /* Unused.  */
   short int ti_flags;                  /* Unused.  */
   int ti_pri;                          /* Thread priority.  */
-  lwpid_t ti_lid;                      /* Unused.  */
+  lwpid_t ti_lid;                      /* Kernel pid for this thread.  */
   sigset_t ti_sigmask;                 /* Signal mask.  */
   unsigned char ti_traceme;            /* Nonzero if event reporting
                                           enabled.  */
This page took 0.023636 seconds and 4 git commands to generate.