* [OB][PATCH] Remove unused td_thr_validate code
@ 2015-05-07 14:02 Gary Benson
2015-05-07 14:44 ` [OB][PATCH] Remove unused td_ta_map_id2thr code Gary Benson
0 siblings, 1 reply; 2+ messages in thread
From: Gary Benson @ 2015-05-07 14:02 UTC (permalink / raw)
To: gdb-patches
linux-thread-db.c initializes td_thr_validate but never uses it.
This commit removes this dead code.
Pushed as obvious.
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.
---
gdb/ChangeLog | 6 ++++++
gdb/linux-thread-db.c | 5 -----
2 files changed, 6 insertions(+), 5 deletions(-)
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;
--
1.7.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [OB][PATCH] Remove unused td_ta_map_id2thr code
2015-05-07 14:02 [OB][PATCH] Remove unused td_thr_validate code Gary Benson
@ 2015-05-07 14:44 ` Gary Benson
0 siblings, 0 replies; 2+ messages in thread
From: Gary Benson @ 2015-05-07 14:44 UTC (permalink / raw)
To: gdb-patches
I found another...
linux-thread-db.c initializes td_ta_map_id2thr but never uses it.
This commit removes this dead code.
Pushed as obvious.
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.
---
gdb/ChangeLog | 6 ++++++
gdb/linux-thread-db.c | 6 ------
2 files changed, 6 insertions(+), 6 deletions(-)
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)
--
1.7.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-07 14:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-07 14:02 [OB][PATCH] Remove unused td_thr_validate code Gary Benson
2015-05-07 14:44 ` [OB][PATCH] Remove unused td_ta_map_id2thr code Gary Benson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).