aboutsummaryrefslogtreecommitdiff
path: root/gdb/xml-syscall.c
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2014-11-20 13:33:28 -0500
committerSergio Durigan Junior <sergiodj@redhat.com>2014-11-20 13:33:28 -0500
commit7e7cbeb3a21dd677d35321c5eafae75e3dc0dc1a (patch)
tree46b940ea400eb1900acc21d4e189c865635a1eca /gdb/xml-syscall.c
parent458c8db89f7e9913da6fa67c3df73404375c436b (diff)
downloadgdb-7e7cbeb3a21dd677d35321c5eafae75e3dc0dc1a.zip
gdb-7e7cbeb3a21dd677d35321c5eafae75e3dc0dc1a.tar.gz
gdb-7e7cbeb3a21dd677d35321c5eafae75e3dc0dc1a.tar.bz2
Fix build breakage from previous commit
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.
Diffstat (limited to 'gdb/xml-syscall.c')
-rw-r--r--gdb/xml-syscall.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gdb/xml-syscall.c b/gdb/xml-syscall.c
index 1da6932..987fe7a 100644
--- a/gdb/xml-syscall.c
+++ b/gdb/xml-syscall.c
@@ -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;