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

Tom Tromey tom@tromey.com
Tue May 12 20:56:37 GMT 2020


>>>>> "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


More information about the Gdb-patches mailing list