This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Remove HAVE_UINTPTR_T from gdb_thread_db.h


When I am trying to move gdb_thread_db.h to common/ dir, I find there is
still a macro check like,

#ifndef HAVE_UINTPTR_T
...
#endif

I don't think we need this any more.  This piece of code was introduced
by patch [1] in 2003, however, in 2008, Daniel has a patch [2] to remove
tests for uintptr_t.

OK to remove this check?

[1] [rfa] gdb_thread_db.h: #errror if no uintptr_t.
http://sourceware.org/ml/gdb-patches/2003-02/msg00708.html
[2] [RFC] Use gnulib's stdint.h.
http://sourceware.org/ml/gdb-patches/2008-06/msg00478.html

-- 
Yao (éå)
2011-05-14  Yao Qi  <yao@codesourcery.com>

	* gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.

diff --git a/gdb/gdb_thread_db.h b/gdb/gdb_thread_db.h
index e20b415..c770b0c 100644
--- a/gdb/gdb_thread_db.h
+++ b/gdb/gdb_thread_db.h
@@ -203,16 +203,6 @@ 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
 {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]