* [commit/obvious] Fix build breakage from previous commit
@ 2014-11-20 18:36 Sergio Durigan Junior
0 siblings, 0 replies; only message in thread
From: Sergio Durigan Junior @ 2014-11-20 18:36 UTC (permalink / raw)
To: GDB Patches; +Cc: Sergio Durigan Junior
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 | 10 ++++++++++
gdb/xml-syscall.c | 11 +++++------
2 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 828f491..a716030 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,6 +1,16 @@
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
* amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
set_xml_syscall_file_name to provide gdbarch.
* arm-linux-tdep.c (arm_linux_init_abi): Likewise.
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;
--
1.9.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-20 18:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-20 18:36 [commit/obvious] Fix build breakage from previous commit Sergio Durigan Junior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).