Move target_read_uint32 out of aarch64_relocate_instruction
authorYao Qi <yao.qi@linaro.org>
Mon, 12 Oct 2015 10:28:38 +0000 (11:28 +0100)
committerYao Qi <yao.qi@linaro.org>
Mon, 12 Oct 2015 10:28:38 +0000 (11:28 +0100)
commit70b439f0a87b6c42901e49a71b1dbd09300e8260
treeb78bf2a5061172f4db95ed9c2ee5c3fb050f0f12
parent8240f4421f7ab761ff5476d16090789d2332b676
Move target_read_uint32 out of aarch64_relocate_instruction

This patch is to move target_read_uint32 out of
aarch64_relocate_instruction and pass INSN to
aarch64_relocate_instruction, so that it is cleaner, only decode
instructions.

gdb/gdbserver:

2015-10-12  Yao Qi  <yao.qi@linaro.org>

* linux-aarch64-low.c (aarch64_relocate_instruction): Add
argument insn.  Remove local variable insn.  Don't call
target_read_uint32.
(aarch64_install_fast_tracepoint_jump_pad): Call
target_read_uint32.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c