public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Remove required field in agent's symbols
@ 2015-08-06 10:48 Pierre Langlois
  2015-08-06 11:02 ` Pedro Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Langlois @ 2015-08-06 10:48 UTC (permalink / raw)
  To: gdb-patches; +Cc: Pierre Langlois

Hi all,

While looking at the in-process agent I noticed shared symbols between
GDBserver and the IPA could be marked as <required>.  This field was never
set nor used so this patch removes it.

Thanks,
Pierre

gdb/ChangeLog:

	* common/agent.c (symbol_list) <required>: Remove.

gdb/gdbserver/ChangeLog:

	* tracepoint.c (symbol_list) <required>: Remove.
---
 gdb/common/agent.c         | 1 -
 gdb/gdbserver/tracepoint.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/gdb/common/agent.c b/gdb/common/agent.c
index 999a3de..5bb18641 100644
--- a/gdb/common/agent.c
+++ b/gdb/common/agent.c
@@ -63,7 +63,6 @@ static struct
 {
   const char *name;
   int offset;
-  int required;
 } symbol_list[] = {
   IPA_SYM(helper_thread_id),
   IPA_SYM(cmd_buf),
diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c
index b5f252a..e1c4a45 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdb/gdbserver/tracepoint.c
@@ -177,7 +177,6 @@ static struct
 {
   const char *name;
   int offset;
-  int required;
 } symbol_list[] = {
   IPA_SYM(gdb_tp_heap_buffer),
   IPA_SYM(gdb_jump_pad_buffer),
-- 
2.4.6

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

* Re: [PATCH] Remove required field in agent's symbols
  2015-08-06 10:48 [PATCH] Remove required field in agent's symbols Pierre Langlois
@ 2015-08-06 11:02 ` Pedro Alves
  2015-08-06 11:30   ` Pierre Langlois
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2015-08-06 11:02 UTC (permalink / raw)
  To: Pierre Langlois, gdb-patches

On 08/06/2015 11:48 AM, Pierre Langlois wrote:
> Hi all,
> 
> While looking at the in-process agent I noticed shared symbols between
> GDBserver and the IPA could be marked as <required>.  This field was never
> set nor used so this patch removes it.

OK.

Yeah, IIRC, that was meant for providing backwards compatibility when new
symbols are added.  But we never did that.  Given the tight coupling
between gdbserver and ipa, adding the field back if we ever need it is such
a minor detail...

Thanks,
Pedro Alves

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

* Re: [PATCH] Remove required field in agent's symbols
  2015-08-06 11:02 ` Pedro Alves
@ 2015-08-06 11:30   ` Pierre Langlois
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre Langlois @ 2015-08-06 11:30 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb-patches, pierre.langlois

On 06/08/15 12:02, Pedro Alves wrote:
> On 08/06/2015 11:48 AM, Pierre Langlois wrote:
>> Hi all,
>>
>> While looking at the in-process agent I noticed shared symbols between
>> GDBserver and the IPA could be marked as <required>.  This field was never
>> set nor used so this patch removes it.
> 
> OK.

Thanks Pedro, I've pushed this in.

Pierre

> 
> Yeah, IIRC, that was meant for providing backwards compatibility when new
> symbols are added.  But we never did that.  Given the tight coupling
> between gdbserver and ipa, adding the field back if we ever need it is such
> a minor detail...
> 
> Thanks,
> Pedro Alves
> 

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

end of thread, other threads:[~2015-08-06 11:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-06 10:48 [PATCH] Remove required field in agent's symbols Pierre Langlois
2015-08-06 11:02 ` Pedro Alves
2015-08-06 11:30   ` Pierre Langlois

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