Remove required field in agent's symbols
Commit Message
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(-)
Comments
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
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
>
@@ -63,7 +63,6 @@ static struct
{
const char *name;
int offset;
- int required;
} symbol_list[] = {
IPA_SYM(helper_thread_id),
IPA_SYM(cmd_buf),
@@ -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),