gdb: fix compile break when HAVE_LIBEXPAT is not defined
authorMichael Mullin <masmullin@gmail.com>
Tue, 15 Sep 2020 00:39:54 +0000 (20:39 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 15 Sep 2020 00:42:56 +0000 (20:42 -0400)
Fixes:

      CXX    xml-tdesc.o
    /home/smarchi/src/binutils-gdb/gdb/xml-tdesc.c: In function const target_desc* file_read_description_xml(const char*):
    /home/smarchi/src/binutils-gdb/gdb/xml-tdesc.c:681:60: error: too few arguments to function target_desc* tdesc_parse_xml(const char*, xml_fetch_another, void*)
      681 |   return tdesc_parse_xml (tdesc_str->data (), fetch_another);
          |                                                            ^
    /home/smarchi/src/binutils-gdb/gdb/xml-tdesc.c:44:1: note: declared here
       44 | tdesc_parse_xml (const char *document, xml_fetch_another fetcher,
          | ^~~~~~~~~~~~~~~

Commit 8400a90d19c5 ("gdb: change xml_fetch_another a function_view")
removed the `baton` parameter of `tdesc_parse_xml`, but didn't update
the version of the function used when GDB is built with no libexpat
support.  Remove the parameter in that definition too.

gdb/ChangeLog:

* xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
Remove baton parameter.

Change-Id: I4ad29fbb7c3323f30ce5204c2976eaea16151a2e

gdb/ChangeLog
gdb/xml-tdesc.c

index 45c712522674257b3be2e79ed59f0570decd3093..0e6dec38b2ae1313fbf3a0876f4e566f5615566f 100644 (file)
@@ -1,3 +1,8 @@
+2020-09-14  Michael Mullin  <masmullin@gmail.com>
+
+       * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
+       Remove baton parameter.
+
 2020-09-14  Pedro Alves  <pedro@palves.net>
 
        * Makefile.in (SELFTESTS_SRCS): Add
index 6e21ff42dafd9cdb4c23aa02bdbeb3722e7839b1..234a08cd654a86329776f1aecb68cf84bf792582 100644 (file)
@@ -41,8 +41,7 @@
    an XML parser.  */
 
 static struct target_desc *
-tdesc_parse_xml (const char *document, xml_fetch_another fetcher,
-                void *fetcher_baton)
+tdesc_parse_xml (const char *document, xml_fetch_another fetcher)
 {
   static int have_warned;
 
This page took 0.033583 seconds and 4 git commands to generate.