]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/gdbserver/ChangeLog
Cast void * to struct user_pt_regs *
authorYao Qi <yao.qi@linaro.org>
Thu, 19 Nov 2015 13:58:29 +0000 (13:58 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 19 Nov 2015 14:01:03 +0000 (14:01 +0000)
commit6a69a054f7581d16d4f65f80c45b92176311e1ef
tree64776f04b9f34f5842772e76caa180ea5330eaa4
parentd47b13e0e2286ef9e9444292bc5631f43cf226da
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.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c