AArch64: Treat pauth ops as nops on non-pauth systems
authorAlan Hayward <alan.hayward@arm.com>
Wed, 22 May 2019 13:02:17 +0000 (14:02 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Wed, 22 May 2019 13:35:25 +0000 (14:35 +0100)
commit8fca4da0759df376bcb646bc4b79a92ba27e2362
tree47050d975da4df191152bcad7f775581b045595c
parentb706061469811a16ff2fb8d42f6e98a22e454212
AArch64: Treat pauth ops as nops on non-pauth systems

Running an address signed binary through GDB on a non pauth system
gives the following error:
Call Frame Instruction op 45 in vendor extension space is not handled on this architecture.

Instead GDB should ignore the op, treating it as a nop.

Add test case for pauth binaries, regardless of whether the target
supports it.

gdb/ChangeLog:

* aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.

gdb/testsuite/ChangeLog:

* gdb.arch/aarch64-pauth.c: New test.
* gdb.arch/aarch64-pauth.exp: New file.
gdb/ChangeLog
gdb/aarch64-tdep.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/aarch64-pauth.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/aarch64-pauth.exp [new file with mode: 0644]