From 1ef53e6b8328acd5b7d54ee2fe288836ce12992e Mon Sep 17 00:00:00 2001 From: Alan Hayward Date: Fri, 22 Mar 2019 10:34:09 +0000 Subject: AArch64: gdbserver: read pauth registers Add the pauth registers to the regset lists. Add a new regset type OPTIONAL_REGS which allows for the regset read to fail. Once the read fails, it will not be checked again. This allows targets with optional features to keep a single static regset_info structure. gdb/ChangeLog: * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define. gdb/gdbserver/ChangeLog: * linux-aarch64-low.c (aarch64_store_pauthregset): New function. * linux-low.c (regsets_store_inferior_registers): Allow optional reads to fail. * linux-low.h (enum regset_type): Add OPTIONAL_REGS. --- gdb/arch/aarch64.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/arch') diff --git a/gdb/arch/aarch64.h b/gdb/arch/aarch64.h index 8c80b7b..309fe75 100644 --- a/gdb/arch/aarch64.h +++ b/gdb/arch/aarch64.h @@ -68,6 +68,7 @@ enum aarch64_regnum #define AARCH64_PAUTH_DMASK_REGNUM(pauth_reg_base) (pauth_reg_base) #define AARCH64_PAUTH_CMASK_REGNUM(pauth_reg_base) (pauth_reg_base + 1) +#define AARCH64_PAUTH_REGS_SIZE (16) #define AARCH64_X_REGS_NUM 31 #define AARCH64_V_REGS_NUM 32 -- cgit v1.1