aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorChung-Lin Tang <cltang@codesourcery.com>2016-07-12 06:02:14 -0700
committerChung-Lin Tang <cltang@codesourcery.com>2016-07-12 06:02:14 -0700
commitb1c51e367880f5065707a2a902b99c6508d19ef8 (patch)
treeba83ba7ca35da779924cbf2b05ab2c5f0237090f /gdb
parentf231881ea65232b3f67379326a5b605c465dffc4 (diff)
downloadgdb-b1c51e367880f5065707a2a902b99c6508d19ef8.zip
gdb-b1c51e367880f5065707a2a902b99c6508d19ef8.tar.gz
gdb-b1c51e367880f5065707a2a902b99c6508d19ef8.tar.bz2
Add type casts to allow C++ compile.
gdb/gdbserver/ * linux-nios2-low.c (nios2_fill_gregset): Add type cast to buf parameter. (nios2_store_gregset): Likewise.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog6
-rw-r--r--gdb/gdbserver/linux-nios2-low.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 29b8ba6..cb87e48 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,9 @@
+2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
+
+ * linux-nios2-low.c (nios2_fill_gregset): Add type cast
+ to buf parameter.
+ (nios2_store_gregset): Likewise.
+
2016-07-01 Pedro Alves <palves@redhat.com>
Antoine Tremblay <antoine.tremblay@ericsson.com>
diff --git a/gdb/gdbserver/linux-nios2-low.c b/gdb/gdbserver/linux-nios2-low.c
index ea0ded1..a32bc1a 100644
--- a/gdb/gdbserver/linux-nios2-low.c
+++ b/gdb/gdbserver/linux-nios2-low.c
@@ -183,7 +183,7 @@ nios2_supply_register (struct regcache *regcache, int regno,
static void
nios2_fill_gregset (struct regcache *regcache, void *buf)
{
- union nios2_register *regset = buf;
+ union nios2_register *regset = (union nios2_register *) buf;
int i;
for (i = 1; i < nios2_num_regs; i++)
@@ -193,7 +193,7 @@ nios2_fill_gregset (struct regcache *regcache, void *buf)
static void
nios2_store_gregset (struct regcache *regcache, const void *buf)
{
- const union nios2_register *regset = buf;
+ const union nios2_register *regset = (union nios2_register *) buf;
int i;
for (i = 0; i < nios2_num_regs; i++)