Fix build breakage from previous commit
authorSergio Durigan Junior <sergiodj@redhat.com>
Thu, 20 Nov 2014 18:33:28 +0000 (13:33 -0500)
committerSergio Durigan Junior <sergiodj@redhat.com>
Thu, 20 Nov 2014 18:33:28 +0000 (13:33 -0500)
In the previous commit, I forgot to adjust the prototypes of the
functions inside gdb/xml-syscall.c for the case when GDB is compiled
without XML support.

gdb/
2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>

PR breakpoints/10737
* xml-syscall.c (set_xml_syscall_file_name): Remove "const"
modifier from "struct gdbarch" when compiling without Expat (XML)
support.
(get_syscall_by_number): Likewise.
(get_syscall_by_name): Likewise.
(get_syscall_names): Likewise.

gdb/ChangeLog
gdb/xml-syscall.c

index 828f491568a9358c91c3b69cca8515e2af1a95fa..a7160304cabf3241d6ad15084931f458b353047e 100644 (file)
@@ -1,3 +1,13 @@
+2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       PR breakpoints/10737
+       * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
+       modifier from "struct gdbarch" when compiling without Expat (XML)
+       support.
+       (get_syscall_by_number): Likewise.
+       (get_syscall_by_name): Likewise.
+       (get_syscall_names): Likewise.
+
 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        PR breakpoints/10737
index 1da693255aab555d089ac2cbe2b2f03541928e6e..987fe7a224ff2f565fe713a81752004af02785db 100644 (file)
@@ -47,14 +47,13 @@ syscall_warn_user (void)
 }
 
 void
-set_xml_syscall_file_name (const struct gdbarch *gdbarch,
-                          const char *name)
+set_xml_syscall_file_name (struct gdbarch *gdbarch, const char *name)
 {
   return;
 }
 
 void
-get_syscall_by_number (const struct gdbarch *gdbarch,
+get_syscall_by_number (struct gdbarch *gdbarch,
                       int syscall_number, struct syscall *s)
 {
   syscall_warn_user ();
@@ -63,8 +62,8 @@ get_syscall_by_number (const struct gdbarch *gdbarch,
 }
 
 void
-get_syscall_by_name (const struct gdbarch *gdbarch,
-                    const char *syscall_name, struct syscall *s)
+get_syscall_by_name (struct gdbarch *gdbarch, const char *syscall_name,
+                    struct syscall *s)
 {
   syscall_warn_user ();
   s->number = UNKNOWN_SYSCALL;
@@ -72,7 +71,7 @@ get_syscall_by_name (const struct gdbarch *gdbarch,
 }
 
 const char **
-get_syscall_names (const struct gdbarch *gdbarch)
+get_syscall_names (struct gdbarch *gdbarch)
 {
   syscall_warn_user ();
   return NULL;