This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix --host cris-*-linux build of GDBServer.
- From: Antoine Tremblay <hexa at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 21 Oct 2015 11:48:43 -0000
- Subject: [binutils-gdb] Fix --host cris-*-linux build of GDBServer.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4cd98a1920446165eaf0a5d5e71f86133e92954d
commit 4cd98a1920446165eaf0a5d5e71f86133e92954d
Author: Antoine Tremblay <antoine.tremblay@ericsson.com>
Date: Wed Oct 21 07:44:26 2015 -0400
Fix --host cris-*-linux build of GDBServer.
Compiling GDBServer with --host cris-*-linux yields a compilation error :
linux-cris-low.c:65:21: error: â??voidâ?? must be the only parameter
This patch fixes the issue by removing the void parameter in cris_get_pc.
gdb/gdbserver/ChangeLog:
* linux-cris-low.c (cris_get_pc): Remove void arg.
Diff:
---
gdb/gdbserver/ChangeLog | 4 ++++
gdb/gdbserver/linux-cris-low.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index da1aff1..8e73d9f 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
+
+ * linux-cris-low.c (cris_get_pc): Remove void arg.
+
2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
* gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
diff --git a/gdb/gdbserver/linux-cris-low.c b/gdb/gdbserver/linux-cris-low.c
index e0bfa1a..135e37a 100644
--- a/gdb/gdbserver/linux-cris-low.c
+++ b/gdb/gdbserver/linux-cris-low.c
@@ -62,7 +62,7 @@ cris_cannot_fetch_register (int regno)
extern int debug_threads;
static CORE_ADDR
-cris_get_pc (struct regcache *regcache, void)
+cris_get_pc (struct regcache *regcache)
{
unsigned long pc;
collect_register_by_name (regcache, "pc", &pc);