]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/aarch64-tdep.c
[aarch64] use aarch64_decode_insn to decode instructions in GDB
authorYao Qi <yao.qi@linaro.org>
Wed, 7 Oct 2015 08:52:46 +0000 (09:52 +0100)
committerYao Qi <yao.qi@linaro.org>
Wed, 7 Oct 2015 08:52:46 +0000 (09:52 +0100)
commitf77ee8026d6c46ebb4463548b3b923ace978aa41
tree80ae4d4eb20a57387ed73aa807fc3db6e11d431e
parentff792d99a93e8c91bae8d0a3998076d1b3bc8fb4
[aarch64] use aarch64_decode_insn to decode instructions in GDB

In this patch, we start to use aarch64_decode_insn to decode instructions
in aarch64_software_single_step.

gdb:

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

* aarch64-tdep.c: Include opcode/aarch64.h.
(submask): Move it above.
(bit): Likewise.
(bits): Likewise.
(aarch64_software_single_step): Call aarch64_decode_insn.
Decode instruction by aarch64_inst instead of using
aarch64_decode_bcond and decode_masked_match.
gdb/ChangeLog
gdb/aarch64-tdep.c