Cast void * to user_fpsimd_state *.
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)
commit9caa33114e9195b0d28ad46d21a11a8f838ffb07
tree263adf4c8750ee7b3a8b674867866601ebba2c3e
parent6a69a054f7581d16d4f65f80c45b92176311e1ef
Cast void * to user_fpsimd_state *.

This patch fixes the following build error in GDBserver,

gdb/gdbserver/linux-aarch64-low.c: In function 'void aarch64_fill_fpregset(regcache*, void*)':
gdb/gdbserver/linux-aarch64-low.c:134:38: error: invalid conversion from 'void*' to 'user_fpsimd_state*' [-fpermissive]
   struct user_fpsimd_state *regset = buf;
                                      ^
gdb/gdbserver/linux-aarch64-low.c: In function 'void aarch64_store_fpregset(regcache*, const void*)':
gdb/gdbserver/linux-aarch64-low.c:146:44: error: invalid conversion from 'const void*' to 'const user_fpsimd_state*' [-fpermissive]
   const struct user_fpsimd_state *regset = buf;
                                            ^
gdb/gdbserver:

2015-11-19  Yao Qi  <yao.qi@linaro.org>

* linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
struct user_fpsimd_state *.
(aarch64_store_fpregset): Likewise.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c