aboutsummaryrefslogtreecommitdiff
path: root/gdb/aarch64-tdep.h
diff options
context:
space:
mode:
authorYichao Yu <yyc1992@gmail.com>2022-05-18 15:00:00 +0100
committerLuis Machado <luis.machado@arm.com>2022-05-18 15:42:23 +0100
commit1fe8486103e482bcd6cd74fdbf79a7d2ab9b111f (patch)
tree7242486ba0048cfea539d7428c362844f6e5be3e /gdb/aarch64-tdep.h
parent4bb8b8e9381bce9734454470ebd1572534e7514e (diff)
downloadgdb-1fe8486103e482bcd6cd74fdbf79a7d2ab9b111f.zip
gdb-1fe8486103e482bcd6cd74fdbf79a7d2ab9b111f.tar.gz
gdb-1fe8486103e482bcd6cd74fdbf79a7d2ab9b111f.tar.bz2
[AArch64] Return the regnum for PC (32) on aarch64
This will allow the unwind info to explicitly specify a different value for the return address from the link register. Such usage, although uncommon, is valid and useful for signal frames. It is also supported by aadwarf64 from ARM (Note 9 in [1]). Ref https://sourceware.org/pipermail/gdb/2022-May/050091.html [1] https://github.com/ARM-software/abi-aa/blob/2022Q1/aadwarf64/aadwarf64.rst#dwarf-register-names Signed-off-by: Luis Machado <luis.machado@arm.com>
Diffstat (limited to 'gdb/aarch64-tdep.h')
-rw-r--r--gdb/aarch64-tdep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/aarch64-tdep.h b/gdb/aarch64-tdep.h
index 057525e..8efacd5 100644
--- a/gdb/aarch64-tdep.h
+++ b/gdb/aarch64-tdep.h
@@ -34,6 +34,7 @@ struct regset;
/* AArch64 Dwarf register numbering. */
#define AARCH64_DWARF_X0 0
#define AARCH64_DWARF_SP 31
+#define AARCH64_DWARF_PC 32
#define AARCH64_DWARF_RA_SIGN_STATE 34
#define AARCH64_DWARF_V0 64
#define AARCH64_DWARF_SVE_VG 46