aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2015-05-07 15:41:43 +0100
committerGary Benson <gbenson@redhat.com>2015-05-07 15:41:43 +0100
commit1c56a84d9bac1f6a451a89d2c6af3d7078c4290e (patch)
treef4e93399f17a028a5e5651ef6c08ed32cfe8eb32
parent74850322e4882a195c92d5968defd93fe3deb75e (diff)
downloadgdb-1c56a84d9bac1f6a451a89d2c6af3d7078c4290e.zip
gdb-1c56a84d9bac1f6a451a89d2c6af3d7078c4290e.tar.gz
gdb-1c56a84d9bac1f6a451a89d2c6af3d7078c4290e.tar.bz2
Remove unused td_ta_map_id2thr code
linux-thread-db.c initializes td_ta_map_id2thr but never uses it. This commit removes this dead code. gdb/ChangeLog: * linux-thread-db.c (struct thread_db_info) <td_ta_map_id2thr_p>: Remove field. (try_thread_db_load_1): Remove initialization for the above.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/linux-thread-db.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 23e452f..44b6146 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,6 +1,12 @@
2015-05-07 Gary Benson <gbenson@redhat.com>
* linux-thread-db.c (struct thread_db_info)
+ <td_ta_map_id2thr_p>: Remove field.
+ (try_thread_db_load_1): Remove initialization for the above.
+
+2015-05-07 Gary Benson <gbenson@redhat.com>
+
+ * linux-thread-db.c (struct thread_db_info)
<td_thr_validate_p>: Remove field.
(try_thread_db_load_1): Remove initialization for the above.
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index 977476e..d6387d5 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -178,8 +178,6 @@ struct thread_db_info
td_err_e (*td_ta_new_p) (struct ps_prochandle * ps,
td_thragent_t **ta);
- td_err_e (*td_ta_map_id2thr_p) (const td_thragent_t *ta, thread_t pt,
- td_thrhandle_t *__th);
td_err_e (*td_ta_map_lwp2thr_p) (const td_thragent_t *ta,
lwpid_t lwpid, td_thrhandle_t *th);
td_err_e (*td_ta_thr_iter_p) (const td_thragent_t *ta,
@@ -722,10 +720,6 @@ try_thread_db_load_1 (struct thread_db_info *info)
return 0;
}
- info->td_ta_map_id2thr_p = verbose_dlsym (info->handle, "td_ta_map_id2thr");
- if (info->td_ta_map_id2thr_p == NULL)
- return 0;
-
info->td_ta_map_lwp2thr_p = verbose_dlsym (info->handle,
"td_ta_map_lwp2thr");
if (info->td_ta_map_lwp2thr_p == NULL)