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 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
aarch64-core.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-core.xml AArch64: Add missing CPSR flags 2019-06-26 15:48:12 +01:00
aarch64-fpu.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-fpu.xml AArch64: Add half float view to V registers 2019-05-14 10:10:56 +01:00
aarch64-pauth.c Regenerate aarch64-pauth.c 2019-07-10 11:47:13 +01:00
aarch64-pauth.xml AArch64: Add pointer authentication feature 2019-03-22 09:58:42 +00:00
aarch64-sve.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
arc-arcompact.c
arc-arcompact.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
arc-v2.c
arc-v2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
btrace-conf.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
btrace.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
feature_to_c.sh Create xml-builtin.h to declare xml_builtins 2019-10-16 18:19:14 +02:00
gdb-target.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
gdbserver-regs.xsl
library-list-aix.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
library-list-svr4.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
library-list.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
m68k-core.xml
Makefile Remove Cell Broadband Engine debugging support 2019-09-20 23:06:57 +02:00
microblaze-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
microblaze-stack-protect.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
microblaze-with-stack-protect.c
microblaze-with-stack-protect.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
microblaze.c
microblaze.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-cp0.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-cpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-dsp-linux.c
mips64-dsp-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-dsp.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-fpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-linux.c
mips64-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-cp0.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-cpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-dsp-linux.c
mips-dsp-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-dsp.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-fpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-linux.c
mips-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nds32-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nds32-fpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nds32-system.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nds32.c
nds32.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nios2-cpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nios2-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nios2.c
nios2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
number-regs.xsl
or1k-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
or1k.c
or1k.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
osdata.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
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 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-core32.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-core64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-fpr.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-gs-linux64.c
s390-gs-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-gs.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-gsbc.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux32.c
s390-linux32.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux32v1.c
s390-linux32v1.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux32v2.c
s390-linux32v2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux64.c
s390-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux64v1.c
s390-linux64v1.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux64v2.c
s390-linux64v2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-tdb.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-te-linux64.c
s390-te-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-tevx-linux64.c
s390-tevx-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-vx-linux64.c
s390-vx-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-vx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-core64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-gs-linux64.c
s390x-gs-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-linux64.c
s390x-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-linux64v1.c
s390x-linux64v1.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-linux64v2.c
s390x-linux64v2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-te-linux64.c
s390x-te-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-tevx-linux64.c
s390x-tevx-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-vx-linux64.c
s390x-vx-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sort-regs.xsl
threads.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-c6xp.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
tic6x-c6xp.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-c62x-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-c64x-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-c64xp-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-core.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
tic6x-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-gp.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
tic6x-gp.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
traceframe-info.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
xinclude.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00