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.
This commit is contained in:
parent
f231881ea6
commit
b1c51e3678
2 changed files with 8 additions and 2 deletions
|
@ -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>
|
2016-07-01 Pedro Alves <palves@redhat.com>
|
||||||
Antoine Tremblay <antoine.tremblay@ericsson.com>
|
Antoine Tremblay <antoine.tremblay@ericsson.com>
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,7 @@ nios2_supply_register (struct regcache *regcache, int regno,
|
||||||
static void
|
static void
|
||||||
nios2_fill_gregset (struct regcache *regcache, void *buf)
|
nios2_fill_gregset (struct regcache *regcache, void *buf)
|
||||||
{
|
{
|
||||||
union nios2_register *regset = buf;
|
union nios2_register *regset = (union nios2_register *) buf;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 1; i < nios2_num_regs; i++)
|
for (i = 1; i < nios2_num_regs; i++)
|
||||||
|
@ -193,7 +193,7 @@ nios2_fill_gregset (struct regcache *regcache, void *buf)
|
||||||
static void
|
static void
|
||||||
nios2_store_gregset (struct regcache *regcache, const void *buf)
|
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;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < nios2_num_regs; i++)
|
for (i = 0; i < nios2_num_regs; i++)
|
||||||
|
|
Loading…
Reference in a new issue