diff options
author | Gary Benson <gbenson@redhat.com> | 2015-05-07 14:52:59 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2015-05-07 14:52:59 +0100 |
commit | 74850322e4882a195c92d5968defd93fe3deb75e (patch) | |
tree | 53b45d69a36a53fbd28f80a51c4b4895291cd24d /gdb | |
parent | 187032dbb8cc15a4a13243a89b32ba8c51e95a4e (diff) | |
download | gdb-74850322e4882a195c92d5968defd93fe3deb75e.zip gdb-74850322e4882a195c92d5968defd93fe3deb75e.tar.gz gdb-74850322e4882a195c92d5968defd93fe3deb75e.tar.bz2 |
Remove unused td_thr_validate code
linux-thread-db.c initializes td_thr_validate but never uses it.
This commit removes this dead code.
gdb/ChangeLog:
* linux-thread-db.c (struct thread_db_info)
<td_thr_validate_p>: Remove field.
(try_thread_db_load_1): Remove initialization for the above.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/linux-thread-db.c | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9939658..23e452f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +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. + 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> * compile/compile-object-load.c (compile_object_load): Support diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 886d8ac..977476e 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -196,7 +196,6 @@ struct thread_db_info td_err_e (*td_ta_event_getmsg_p) (const td_thragent_t *ta, td_event_msg_t *msg); - td_err_e (*td_thr_validate_p) (const td_thrhandle_t *th); td_err_e (*td_thr_get_info_p) (const td_thrhandle_t *th, td_thrinfo_t *infop); td_err_e (*td_thr_event_enable_p) (const td_thrhandle_t *th, @@ -736,10 +735,6 @@ try_thread_db_load_1 (struct thread_db_info *info) if (info->td_ta_thr_iter_p == NULL) return 0; - info->td_thr_validate_p = verbose_dlsym (info->handle, "td_thr_validate"); - if (info->td_thr_validate_p == NULL) - return 0; - info->td_thr_get_info_p = verbose_dlsym (info->handle, "td_thr_get_info"); if (info->td_thr_get_info_p == NULL) return 0; |