binutils-gdb/gdb/features
Christian Biesinger fec4e896d6 Create xml-builtin.h to declare xml_builtins
xml-builtin.c only has character arrays and no dependencies, so this
creates a simple header file for that purpose so that gdbserver
can include that instead of re-declaring xml_builtin.

Despite the name, feature_to_c.sh is already specific to xml_builtins
(it hardcodes the variable name), so making it always output the
include for xml-builtin.h seems fine.

gdb/ChangeLog:

2019-10-16  Christian Biesinger  <cbiesinger@google.com>

	* Makefile.in: Add xml-builtin.h.
	* features/feature_to_c.sh: Add an include for xml-builtin.h
	to ensure that the compiler checks that the types match.
	* xml-builtin.h: New file.
	* xml-support.c (fetch_xml_builtin): Add missing const.
	* xml-support.h: Remove declaration of xml_builtins.

gdb/gdbserver/ChangeLog:

2019-10-16  Christian Biesinger  <cbiesinger@google.com>

	* server.c: Include xml-builtin.h.
	(get_xml_features): Don't declare xml_builtins here.

Change-Id: I806ef0851c43ead90b545a11794e41f5e5178436
2019-10-16 18:19:14 +02:00
..
arm Arm: Remove unused feature files and tests 2019-07-19 15:43:55 +01:00
i386 Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
riscv Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
rs6000 Remove Cell Broadband Engine debugging support 2019-09-20 23:06:57 +02:00
sparc
aarch64-core.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-core.xml
aarch64-fpu.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-fpu.xml
aarch64-pauth.c Regenerate aarch64-pauth.c 2019-07-10 11:47:13 +01:00
aarch64-pauth.xml
aarch64-sve.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
arc-arcompact.c
arc-arcompact.xml
arc-v2.c
arc-v2.xml
btrace-conf.dtd
btrace.dtd
feature_to_c.sh Create xml-builtin.h to declare xml_builtins 2019-10-16 18:19:14 +02:00
gdb-target.dtd
gdbserver-regs.xsl
library-list-aix.dtd
library-list-svr4.dtd
library-list.dtd
m68k-core.xml
Makefile Remove Cell Broadband Engine debugging support 2019-09-20 23:06:57 +02:00
microblaze-core.xml
microblaze-stack-protect.xml
microblaze-with-stack-protect.c
microblaze-with-stack-protect.xml
microblaze.c
microblaze.xml
mips64-cp0.xml
mips64-cpu.xml
mips64-dsp-linux.c
mips64-dsp-linux.xml
mips64-dsp.xml
mips64-fpu.xml
mips64-linux.c
mips64-linux.xml
mips-cp0.xml
mips-cpu.xml
mips-dsp-linux.c
mips-dsp-linux.xml
mips-dsp.xml
mips-fpu.xml
mips-linux.c
mips-linux.xml
nds32-core.xml
nds32-fpu.xml
nds32-system.xml
nds32.c
nds32.xml
nios2-cpu.xml
nios2-linux.xml
nios2.c
nios2.xml
number-regs.xsl
or1k-core.xml
or1k.c
or1k.xml
osdata.dtd
rx.c Convert the RX target to make use of target descriptions. 2019-08-25 17:00:08 +09:00
rx.xml Convert the RX target to make use of target descriptions. 2019-08-25 17:00:08 +09:00
s390-acr.xml
s390-core32.xml
s390-core64.xml
s390-fpr.xml
s390-gs-linux64.c
s390-gs-linux64.xml
s390-gs.xml
s390-gsbc.xml
s390-linux32.c
s390-linux32.xml
s390-linux32v1.c
s390-linux32v1.xml
s390-linux32v2.c
s390-linux32v2.xml
s390-linux64.c
s390-linux64.xml
s390-linux64v1.c
s390-linux64v1.xml
s390-linux64v2.c
s390-linux64v2.xml
s390-tdb.xml
s390-te-linux64.c
s390-te-linux64.xml
s390-tevx-linux64.c
s390-tevx-linux64.xml
s390-vx-linux64.c
s390-vx-linux64.xml
s390-vx.xml
s390x-core64.xml
s390x-gs-linux64.c
s390x-gs-linux64.xml
s390x-linux64.c
s390x-linux64.xml
s390x-linux64v1.c
s390x-linux64v1.xml
s390x-linux64v2.c
s390x-linux64v2.xml
s390x-te-linux64.c
s390x-te-linux64.xml
s390x-tevx-linux64.c
s390x-tevx-linux64.xml
s390x-vx-linux64.c
s390x-vx-linux64.xml
sort-regs.xsl
threads.dtd
tic6x-c6xp.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
tic6x-c6xp.xml
tic6x-c62x-linux.xml
tic6x-c64x-linux.xml
tic6x-c64xp-linux.xml
tic6x-core.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
tic6x-core.xml
tic6x-gp.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
tic6x-gp.xml
traceframe-info.dtd
xinclude.dtd