Move append_insns 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)
commitdfaffe9d93dec5c23cc71b74789221ce97a132ef
tree9398f0786cad0e59f8f6634538324e0312388b43
parent70b439f0a87b6c42901e49a71b1dbd09300e8260
Move append_insns out of aarch64_relocate_instruction

aarch64_relocate_instruction should only decode instructions, and other
operations should be done out side of it.  This patch moves append_insns
out of aarch64_relocate_instruction, to its caller.

gdb/gdbserver:

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

* linux-aarch64-low.c (aarch64_relocate_instruction): Return
int.  Add argument buf.
(aarch64_install_fast_tracepoint_jump_pad): Pass buf to
aarch64_relocate_instruction.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c