Add type casts to allow C++ compile.
authorChung-Lin Tang <cltang@codesourcery.com>
Tue, 12 Jul 2016 13:02:14 +0000 (06:02 -0700)
committerChung-Lin Tang <cltang@codesourcery.com>
Tue, 12 Jul 2016 13:02:14 +0000 (06:02 -0700)
gdb/gdbserver/
* linux-nios2-low.c (nios2_fill_gregset): Add type cast
to buf parameter.
(nios2_store_gregset): Likewise.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-nios2-low.c

index 29b8ba64c1cdd5a63549491a1e6ec397d68bc90e..cb87e48e94a79d0d8e1a281c94eebafdfd9708e1 100644 (file)
@@ -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>
 
index ea0ded1f1ecfa4886cd37b885dee056ac6d88d7a..a32bc1af1ce9e7f920c9c975623a8a1f2c477ff6 100644 (file)
@@ -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++)
This page took 0.032682 seconds and 4 git commands to generate.