public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] [GDBserver] Remove td_ta_event_addr td_ta_set_event and td_ta_event_getmsg
@ 2016-08-01  9:19 Yao Qi
  2016-08-01 13:28 ` Gary Benson
  0 siblings, 1 reply; 5+ messages in thread
From: Yao Qi @ 2016-08-01  9:19 UTC (permalink / raw)
  To: gdb-patches

As a result of this commit,

  9b4c5f878ff39e04127a1ad95f6b3832afe6d278
  (Remove support for thread events without PTRACE_EVENT_CLONE in GDBServer.)

the last usage of td_ta_event_addr td_ta_set_event and
td_ta_event_getmsg were removed.  They are no longer used.  This patch
is to remove them.

gdb/gdbserver:

2016-08-01  Yao Qi  <yao.qi@linaro.org>

	* thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
	<td_ta_set_event_p, td_ta_event_addr_p>: Remove.
	(thread_db_load_search): Update.
	(try_thread_db_load_1): Don't look for td_ta_event_addr,
	td_ta_set_event and td_ta_event_getmsg.
---
 gdb/gdbserver/thread-db.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/gdb/gdbserver/thread-db.c b/gdb/gdbserver/thread-db.c
index 185b8ed..0222bfc 100644
--- a/gdb/gdbserver/thread-db.c
+++ b/gdb/gdbserver/thread-db.c
@@ -56,9 +56,6 @@ struct thread_db
 
   /* Addresses of libthread_db functions.  */
   td_ta_new_ftype *td_ta_new_p;
-  td_ta_event_getmsg_ftype * td_ta_event_getmsg_p;
-  td_ta_set_event_ftype *td_ta_set_event_p;
-  td_ta_event_addr_ftype *td_ta_event_addr_p;
   td_ta_map_lwp2thr_ftype *td_ta_map_lwp2thr_p;
   td_thr_get_info_ftype *td_thr_get_info_p;
   td_ta_thr_iter_ftype *td_ta_thr_iter_p;
@@ -475,9 +472,6 @@ thread_db_load_search (void)
   tdb->td_symbol_list_p = &td_symbol_list;
 
   /* These are not essential.  */
-  tdb->td_ta_event_addr_p = &td_ta_event_addr;
-  tdb->td_ta_set_event_p = &td_ta_set_event;
-  tdb->td_ta_event_getmsg_p = &td_ta_event_getmsg;
   tdb->td_thr_tls_get_addr_p = &td_thr_tls_get_addr;
   tdb->td_thr_tlsbase_p = &td_thr_tlsbase;
 
@@ -542,9 +536,6 @@ try_thread_db_load_1 (void *handle)
   CHK (1, TDB_DLSYM (tdb, td_symbol_list));
 
   /* These are not essential.  */
-  CHK (0, TDB_DLSYM (tdb, td_ta_event_addr));
-  CHK (0, TDB_DLSYM (tdb, td_ta_set_event));
-  CHK (0, TDB_DLSYM (tdb, td_ta_event_getmsg));
   CHK (0, TDB_DLSYM (tdb, td_thr_tls_get_addr));
   CHK (0, TDB_DLSYM (tdb, td_thr_tlsbase));
 
-- 
1.9.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] [GDBserver] Remove td_ta_event_addr td_ta_set_event and td_ta_event_getmsg
  2016-08-01  9:19 [PATCH] [GDBserver] Remove td_ta_event_addr td_ta_set_event and td_ta_event_getmsg Yao Qi
@ 2016-08-01 13:28 ` Gary Benson
  2016-08-01 16:14   ` Yao Qi
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Benson @ 2016-08-01 13:28 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches

Hi Yao,

Yao Qi wrote:
> 2016-08-01  Yao Qi  <yao.qi@linaro.org>
> 
> 	* thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
> 	<td_ta_set_event_p, td_ta_event_addr_p>: Remove.
> 	(thread_db_load_search): Update.
> 	(try_thread_db_load_1): Don't look for td_ta_event_addr,
> 	td_ta_set_event and td_ta_event_getmsg.

Not an objection, but... are these still used in GDB native?
I'd really like to merge the two implementations at some point
in the next months.

Cheers,
Gary

-- 
http://gbenson.net/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] [GDBserver] Remove td_ta_event_addr td_ta_set_event and td_ta_event_getmsg
  2016-08-01 13:28 ` Gary Benson
@ 2016-08-01 16:14   ` Yao Qi
  2016-08-02 11:18     ` Gary Benson
  0 siblings, 1 reply; 5+ messages in thread
From: Yao Qi @ 2016-08-01 16:14 UTC (permalink / raw)
  To: Gary Benson; +Cc: gdb-patches

On Mon, Aug 1, 2016 at 2:27 PM, Gary Benson <gbenson@redhat.com> wrote:
> Hi Yao,
>
> Yao Qi wrote:
>> 2016-08-01  Yao Qi  <yao.qi@linaro.org>
>>
>>       * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
>>       <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
>>       (thread_db_load_search): Update.
>>       (try_thread_db_load_1): Don't look for td_ta_event_addr,
>>       td_ta_set_event and td_ta_event_getmsg.
>
> Not an objection, but... are these still used in GDB native?

No, they were removed in
https://sourceware.org/ml/gdb-patches/2015-12/msg00192.html

> I'd really like to merge the two implementations at some point
> in the next months.

-- 
Yao (齐尧)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] [GDBserver] Remove td_ta_event_addr td_ta_set_event and td_ta_event_getmsg
  2016-08-01 16:14   ` Yao Qi
@ 2016-08-02 11:18     ` Gary Benson
  2016-08-02 15:07       ` Yao Qi
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Benson @ 2016-08-02 11:18 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches

Yao Qi wrote:
> On Mon, Aug 1, 2016 at 2:27 PM, Gary Benson <gbenson@redhat.com> wrote:
> > Yao Qi wrote:
> > > 2016-08-01  Yao Qi  <yao.qi@linaro.org>
> > >
> > >       * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
> > >       <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
> > >       (thread_db_load_search): Update.
> > >       (try_thread_db_load_1): Don't look for td_ta_event_addr,
> > >       td_ta_set_event and td_ta_event_getmsg.
> >
> > Not an objection, but... are these still used in GDB native?
> 
> No, they were removed in
> https://sourceware.org/ml/gdb-patches/2015-12/msg00192.html

Awesome.

Cheers,
Gary

-- 
http://gbenson.net/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] [GDBserver] Remove td_ta_event_addr td_ta_set_event and td_ta_event_getmsg
  2016-08-02 11:18     ` Gary Benson
@ 2016-08-02 15:07       ` Yao Qi
  0 siblings, 0 replies; 5+ messages in thread
From: Yao Qi @ 2016-08-02 15:07 UTC (permalink / raw)
  To: Gary Benson; +Cc: gdb-patches

On Tue, Aug 2, 2016 at 12:17 PM, Gary Benson <gbenson@redhat.com> wrote:
>> No, they were removed in
>> https://sourceware.org/ml/gdb-patches/2015-12/msg00192.html
>
> Awesome.
>

I pushed it in to master.

-- 
Yao (齐尧)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-02 15:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-01  9:19 [PATCH] [GDBserver] Remove td_ta_event_addr td_ta_set_event and td_ta_event_getmsg Yao Qi
2016-08-01 13:28 ` Gary Benson
2016-08-01 16:14   ` Yao Qi
2016-08-02 11:18     ` Gary Benson
2016-08-02 15:07       ` Yao Qi

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).