Use aarch64_decode_insn in aarch64_analyze_prologue
authorYao Qi <yao.qi@linaro.org>
Thu, 5 Nov 2015 09:44:32 +0000 (09:44 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 5 Nov 2015 09:44:32 +0000 (09:44 +0000)
commitd9ebcbce29f3621a687872270cc8952ba1501e56
tree9e9ee4874ca7a5856e9e536044ce4451ee0430a9
parent93d960127c205918dbb69ab32e686b20ff365a25
Use aarch64_decode_insn in aarch64_analyze_prologue

This patch convert aarch64_analyze_prologue to using aarch64_decode_insn
to decode instructions.  After this change, aarch64_analyze_prologue
looks much simple, and some aarch64_decode_* functions are removed
accordingly.

gdb:

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

* aarch64-tdep.c (extract_signed_bitfield): Remove.
(decode_masked_match): Remove.
(aarch64_decode_add_sub_imm): Remove.
(aarch64_decode_br): Remove.
(aarch64_decode_eret): Remove.
(aarch64_decode_movz): Remove.
(aarch64_decode_orr_shifted_register_x): Remove.
(aarch64_decode_ret): Remove.
(aarch64_decode_stp_offset): Remove.
(aarch64_decode_stur): Remove.
(aarch64_analyze_prologue): Call aarch64_decode_insn
and use aarch64_inst to decode instructions.
gdb/ChangeLog
gdb/aarch64-tdep.c