Move ordinary gdbarch code to arch-utils
authorTom Tromey <tom@tromey.com>
Tue, 14 Dec 2021 23:33:56 +0000 (16:33 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 17 Dec 2021 21:53:44 +0000 (14:53 -0700)
commit74fcd19c514f7beb24ab842381453efb74a8ac58
treed1062a4ca2cc61219954d29bd4b83765c8ca6177
parent8294c9025a901ad055c979f80815465765836ae1
Move ordinary gdbarch code to arch-utils

While I think it makes sense to generate gdbarch.c, at the same time I
think it is better for ordinary code to be editable in a C file -- not
as a hunk of C code embedded in the generator.

This patch moves this sort of code out of gdbarch.sh and gdbarch.c and
into arch-utils.c, then has arch-utils.c include gdbarch.c.
gdb/Makefile.in
gdb/arch-utils.c
gdb/gdbarch.c
gdb/gdbarch.sh