AArch64: Add pauth DWARF registers
authorAlan Hayward <alan.hayward@arm.com>
Fri, 22 Mar 2019 10:37:46 +0000 (10:37 +0000)
committerAlan Hayward <alan.hayward@arm.com>
Fri, 22 Mar 2019 10:37:46 +0000 (10:37 +0000)
commit34dcc7cf95f756862bdfebb753ab2de39fec4c9e
treec84ad9025f3c183c3e29618a64cf6c81f0abfdfb
parent1ef53e6b8328acd5b7d54ee2fe288836ce12992e
AArch64: Add pauth DWARF registers

Map the pauth registers to DWARF.

Add a new pseudo register ra_state and also map this to DWARF.  This register
is hidden from the user - prevent it from being read or written to.  It will
be used for the unmangling of addresses.

gdb/ChangeLog:

* aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
registers.
(aarch64_pseudo_register_name): Likewise.
(aarch64_pseudo_register_type): Likewise.
(aarch64_pseudo_register_reggroup_p): Likewise.
(aarch64_gdbarch_init): Add pauth registers.
* aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
(AARCH64_DWARF_PAUTH_DMASK): Likewise.
(AARCH64_DWARF_PAUTH_CMASK): Likewise.
(struct gdbarch_tdep): Add regnum for ra_state.
gdb/ChangeLog
gdb/aarch64-tdep.c
gdb/aarch64-tdep.h