Make aarch64_decode_adrp handle both ADR and ADRP instructions
authorPierre Langlois <pierre.langlois@arm.com>
Mon, 21 Sep 2015 14:01:04 +0000 (15:01 +0100)
committerYao Qi <yao.qi@linaro.org>
Mon, 21 Sep 2015 14:01:04 +0000 (15:01 +0100)
commit6ec5f4be052e594dc90b6677fec1c1e7727d9651
treea3cd573fae1dca52781754dedb6c281563509679
parent787749ead66eee8c20754c160bd79404b2109553
Make aarch64_decode_adrp handle both ADR and ADRP instructions

We will need to decode both ADR and ADRP instructions in GDBserver.
This patch makes common code handle both cases, even if GDB only needs
to decode the ADRP instruction.

gdb/ChangeLog:

* aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
variable.  Call aarch64_decode_adr instead of
aarch64_decode_adrp.
* arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
(aarch64_decode_adr): New function declaration.
* arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
(aarch64_decode_adr): New function, factored out from
aarch64_decode_adrp to decode both adr and adrp instructions.
gdb/ChangeLog
gdb/aarch64-tdep.c
gdb/arch/aarch64-insn.c
gdb/arch/aarch64-insn.h