[PATCH] gdb: make gdbarch.sh write gdbarch.{c,h} directly

Simon Marchi simark@simark.ca
Sun May 24 15:12:40 GMT 2020


On 2020-05-12 5:16 p.m., Simon Marchi wrote:
> On 2020-05-12 4:56 p.m., Tom Tromey wrote:
>>>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
>>
>> Simon> It was suggested in this thread [1] that gdbarch.sh should write to
>> Simon> gdbarch.h and gdbarch.c directly.  This patch implements that.
>>
>> Simon> When running gdbarch.sh, we currently need to move new-gdbarch.c over
>> Simon> gdbarch.c and new-gdbarch.h over gdbarch.h.  It might have been useful
>> Simon> at some point to not have gdbarch.sh overwrite gdbarch.h and gdbarch.c,
>> Simon> but with git it's really unnecessary.  Any changes to gdbarch.sh can be
>> Simon> inspected using `git diff`.
>>
>> This is a nice improvement, thanks.
>>
>> Tom
>>
> 
> Thanks, I'll wait for more input for the community before pushing, in case somebody
> has an objection.
> 
> Simon
> 

I pushed this patch.

Simon


More information about the Gdb-patches mailing list