AArch64: Treat pauth ops as nops on non-pauth systems
[deliverable/binutils-gdb.git] / gdb / aarch64-tdep.c
index bbb2a25f956c3b09ba199143d5439e2a135fe719..96ebce4c352cb694da9b5cf821be5395721dcd62 100644 (file)
@@ -1180,8 +1180,12 @@ aarch64_execute_dwarf_cfa_vendor_op (struct gdbarch *gdbarch, gdb_byte op,
   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
   struct dwarf2_frame_state_reg *ra_state;
 
-  if (tdep->has_pauth () && op == DW_CFA_AARCH64_negate_ra_state)
+  if (op == DW_CFA_AARCH64_negate_ra_state)
     {
+      /* On systems without pauth, treat as a nop.  */
+      if (!tdep->has_pauth ())
+       return true;
+
       /* Allocate RA_STATE column if it's not allocated yet.  */
       fs->regs.alloc_regs (AARCH64_DWARF_PAUTH_RA_STATE + 1);
 
This page took 0.029208 seconds and 4 git commands to generate.