mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
Cast void * to struct user_pt_regs *
This patch fixes the following GDBserver build errors in C++. gdb/gdbserver/linux-aarch64-low.c:108:33: error: invalid conversion from 'void*' to 'user_pt_regs*' [-fpermissive] struct user_pt_regs *regset = buf; ^ gdb/gdbserver/linux-aarch64-low.c: In function 'void aarch64_store_gregset(regcache*, const void*)': gdb/gdbserver/linux-aarch64-low.c:121:39: error: invalid conversion from 'const void*' to 'const user_pt_regs*' [-fpermissive] const struct user_pt_regs *regset = buf; gdb/gdbserver: 2015-11-19 Yao Qi <yao.qi@linaro.org> * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to struct user_pt_regs *. (aarch64_store_gregset): Likewise.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2015-11-19 Yao Qi <yao.qi@linaro.org>
|
||||||
|
|
||||||
|
* linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
|
||||||
|
struct user_pt_regs *.
|
||||||
|
(aarch64_store_gregset): Likewise.
|
||||||
|
|
||||||
2015-11-18 Pedro Alves <palves@redhat.com>
|
2015-11-18 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* Makefile.in (all_object_files): Add $IPA_OBJS.
|
* Makefile.in (all_object_files): Add $IPA_OBJS.
|
||||||
|
@ -105,7 +105,7 @@ aarch64_cannot_fetch_register (int regno)
|
|||||||
static void
|
static void
|
||||||
aarch64_fill_gregset (struct regcache *regcache, void *buf)
|
aarch64_fill_gregset (struct regcache *regcache, void *buf)
|
||||||
{
|
{
|
||||||
struct user_pt_regs *regset = buf;
|
struct user_pt_regs *regset = (struct user_pt_regs *) buf;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < AARCH64_X_REGS_NUM; i++)
|
for (i = 0; i < AARCH64_X_REGS_NUM; i++)
|
||||||
@ -118,7 +118,7 @@ aarch64_fill_gregset (struct regcache *regcache, void *buf)
|
|||||||
static void
|
static void
|
||||||
aarch64_store_gregset (struct regcache *regcache, const void *buf)
|
aarch64_store_gregset (struct regcache *regcache, const void *buf)
|
||||||
{
|
{
|
||||||
const struct user_pt_regs *regset = buf;
|
const struct user_pt_regs *regset = (const struct user_pt_regs *) buf;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < AARCH64_X_REGS_NUM; i++)
|
for (i = 0; i < AARCH64_X_REGS_NUM; i++)
|
||||||
|
Reference in New Issue
Block a user