This is the mail archive of the gdb-cvs@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]

[binutils-gdb] Remove unused libthread_db td_thr_validate reference


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d0571b9934241e58a5325fc6e09298d0e3396280

commit d0571b9934241e58a5325fc6e09298d0e3396280
Author: Gary Benson <gbenson@redhat.com>
Date:   Mon May 23 13:26:47 2016 +0100

    Remove unused libthread_db td_thr_validate reference
    
    Native GDB looks up the function td_thr_validate from libthread_db.so
    on Linux, but the value is never used.  This commit removes this dead
    code.
    
    gdb/ChangeLog:
    
    	* nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
    	* linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
    	Remove field.
    	(try_thread_db_load_1): Remove td_thr_validate initialization.

Diff:
---
 gdb/ChangeLog           | 7 +++++++
 gdb/linux-thread-db.c   | 2 --
 gdb/nat/gdb_thread_db.h | 1 -
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e0db33c..9239665 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2016-05-23  Gary Benson  <gbenson@redhat.com>
+
+	* nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
+	* linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
+	Remove field.
+	(try_thread_db_load_1): Remove td_thr_validate initialization.
+
 2016-05-23  Jon Boden  <jon@ubuntubsd.org>  (tiny change)
 
 	* configure.ac: Search for libutil-freebsd as alternative to libutil.
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index 844b05c..284e331 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -158,7 +158,6 @@ struct thread_db_info
   td_ta_new_ftype *td_ta_new_p;
   td_ta_map_lwp2thr_ftype *td_ta_map_lwp2thr_p;
   td_ta_thr_iter_ftype *td_ta_thr_iter_p;
-  td_thr_validate_ftype *td_thr_validate_p;
   td_thr_get_info_ftype *td_thr_get_info_p;
   td_thr_tls_get_addr_ftype *td_thr_tls_get_addr_p;
   td_thr_tlsbase_ftype *td_thr_tlsbase_p;
@@ -561,7 +560,6 @@ try_thread_db_load_1 (struct thread_db_info *info)
 
   /* These are essential.  */
   CHK (TDB_VERBOSE_DLSYM (info, td_ta_map_lwp2thr));
-  CHK (TDB_VERBOSE_DLSYM (info, td_thr_validate));
   CHK (TDB_VERBOSE_DLSYM (info, td_thr_get_info));
 
   /* These are not essential.  */
diff --git a/gdb/nat/gdb_thread_db.h b/gdb/nat/gdb_thread_db.h
index 30f7400..99407b0 100644
--- a/gdb/nat/gdb_thread_db.h
+++ b/gdb/nat/gdb_thread_db.h
@@ -57,7 +57,6 @@ typedef td_err_e (td_ta_clear_event_ftype) (const td_thragent_t *ta,
 typedef td_err_e (td_ta_event_getmsg_ftype) (const td_thragent_t *ta,
 					     td_event_msg_t *msg);
 
-typedef td_err_e (td_thr_validate_ftype) (const td_thrhandle_t *th);
 typedef td_err_e (td_thr_get_info_ftype) (const td_thrhandle_t *th,
 					  td_thrinfo_t *infop);
 typedef td_err_e (td_thr_event_enable_ftype) (const td_thrhandle_t *th,


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