Remove unused DWARF PAUTH registers
authorLuis Machado <luis.machado@arm.com>
Fri, 6 May 2022 14:30:41 +0000 (15:30 +0100)
committerLuis Machado <luis.machado@arm.com>
Wed, 18 May 2022 10:24:55 +0000 (11:24 +0100)
The AARCH64_DWARF_PAUTH_DMASK and AARCH64_DWARF_PAUTH_CMASK DWARF registers
never made their way into the aadwarf64. The following patch removes these
constants and their use.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=26295

gdb/aarch64-tdep.c
gdb/aarch64-tdep.h

index d85c406069b115cbc9db8ff4a85f83fd34554dfe..d0995bb9c487ff83c0dfb06be258977f86d28607 100644 (file)
@@ -2236,9 +2236,6 @@ aarch64_dwarf_reg_to_regnum (struct gdbarch *gdbarch, int reg)
 
   if (tdep->has_pauth ())
     {
-      if (reg >= AARCH64_DWARF_PAUTH_DMASK && reg <= AARCH64_DWARF_PAUTH_CMASK)
-       return tdep->pauth_reg_base + reg - AARCH64_DWARF_PAUTH_DMASK;
-
       if (reg == AARCH64_DWARF_RA_SIGN_STATE)
        return tdep->ra_sign_state_regnum;
     }
index 9ca3aee1ed15c2c1b4b2acef84ec56c2fffd389d..057525e68f44f1317608232ed2a17a5436707079 100644 (file)
@@ -35,8 +35,6 @@ struct regset;
 #define AARCH64_DWARF_X0   0
 #define AARCH64_DWARF_SP  31
 #define AARCH64_DWARF_RA_SIGN_STATE  34
-#define AARCH64_DWARF_PAUTH_DMASK  35
-#define AARCH64_DWARF_PAUTH_CMASK  36
 #define AARCH64_DWARF_V0  64
 #define AARCH64_DWARF_SVE_VG   46
 #define AARCH64_DWARF_SVE_FFR  47