aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/PROBLEMS6
-rw-r--r--gdb/gdb_thread_db.h10
3 files changed, 20 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f1a025b..6ec553a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2003-02-26 Michael Chastain <mec@shout.net>
+
+ Close PR build/660.
+ * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
+ for old libc5/glibc.
+ * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
+
2003-02-26 Kris Warkentin <kewarken@qnx.com>
* defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
diff --git a/gdb/PROBLEMS b/gdb/PROBLEMS
index f992b0b..8511263 100644
--- a/gdb/PROBLEMS
+++ b/gdb/PROBLEMS
@@ -69,9 +69,9 @@ building GDB vis:
i[3456]86-*-linux*
------------------
-gdb/660: gdb does not build with linux libc5. The symptom is a parse
-error before `uintptr_t'. Upgrade to glibc 2.1.3 or later, which
-defines uintptr_t.
+gdb/660: gdb does not build with GNU/Linux libc5. The symptom is a
+parse error before `uintptr_t' or an error message about `uintptr_t'.
+Upgrade to glibc 2.1.3 or later, which defines uintptr_t.
gdb/1030: GNU binutils 2.12.1 and earlier versions do not work properly
with gdb. If you use GNU binutils, upgrade to version 2.13 or later.
diff --git a/gdb/gdb_thread_db.h b/gdb/gdb_thread_db.h
index c47c424..81dd0a0 100644
--- a/gdb/gdb_thread_db.h
+++ b/gdb/gdb_thread_db.h
@@ -199,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
{