From: Chung-Lin Tang Date: Tue, 12 Jul 2016 13:02:14 +0000 (-0700) Subject: Add type casts to allow C++ compile. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1c51e367880f5065707a2a902b99c6508d19ef8;p=binutils-gdb.git 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. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 29b8ba64c1c..cb87e48e94a 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +2016-07-12 Chung-Lin Tang + + * linux-nios2-low.c (nios2_fill_gregset): Add type cast + to buf parameter. + (nios2_store_gregset): Likewise. + 2016-07-01 Pedro Alves Antoine Tremblay diff --git a/gdb/gdbserver/linux-nios2-low.c b/gdb/gdbserver/linux-nios2-low.c index ea0ded1f1ec..a32bc1af1ce 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++)