aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-low.h
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2019-03-22 10:34:09 +0000
committerAlan Hayward <alan.hayward@arm.com>2019-03-22 10:34:09 +0000
commit1ef53e6b8328acd5b7d54ee2fe288836ce12992e (patch)
treede8f553a4587c228651e7bfc16f0f720b4c9a14d /gdb/gdbserver/linux-low.h
parent76bed0fd9493868889929ca9dcd32350c1d864be (diff)
downloadgdb-1ef53e6b8328acd5b7d54ee2fe288836ce12992e.zip
gdb-1ef53e6b8328acd5b7d54ee2fe288836ce12992e.tar.gz
gdb-1ef53e6b8328acd5b7d54ee2fe288836ce12992e.tar.bz2
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.
Diffstat (limited to 'gdb/gdbserver/linux-low.h')
-rw-r--r--gdb/gdbserver/linux-low.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h
index d09390d..1ade35d 100644
--- a/gdb/gdbserver/linux-low.h
+++ b/gdb/gdbserver/linux-low.h
@@ -40,6 +40,7 @@ enum regset_type {
GENERAL_REGS,
FP_REGS,
EXTENDED_REGS,
+ OPTIONAL_REGS, /* Do not error if the regset cannot be accessed. */
};
/* The arch's regsets array initializer must be terminated with a NULL