From fec4e896d6834bc6d23b9d666910dce43f2a2184 Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Wed, 9 Oct 2019 20:08:13 -0500 Subject: 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 * 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 * server.c: Include xml-builtin.h. (get_xml_features): Don't declare xml_builtins here. Change-Id: I806ef0851c43ead90b545a11794e41f5e5178436 --- gdb/xml-support.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gdb/xml-support.h') diff --git a/gdb/xml-support.h b/gdb/xml-support.h index 5012767..59b4467 100644 --- a/gdb/xml-support.h +++ b/gdb/xml-support.h @@ -44,11 +44,6 @@ LONGEST xml_builtin_xfer_partial (const char *filename, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST len); -/* The text of compiled-in XML documents, from xml-builtin.c - (generated). */ - -extern const char *xml_builtin[][2]; - /* Support for XInclude. */ /* Callback to fetch a new XML file, based on the provided HREF. */ -- cgit v1.1