diff options
author | Luis Machado <luis.machado@arm.com> | 2023-04-13 14:42:31 +0100 |
---|---|---|
committer | Luis Machado <luis.machado@arm.com> | 2023-04-14 13:15:25 +0100 |
commit | e10d82fc3ed03ee03f7c831a5b1e73c6c5ed3722 (patch) | |
tree | 9743d8e426d48152f88d58f70b9c1e72d8f8e4ed | |
parent | b8d1a3a8ef9aff015ae963522287f7785bc552ec (diff) | |
download | binutils-e10d82fc3ed03ee03f7c831a5b1e73c6c5ed3722.zip binutils-e10d82fc3ed03ee03f7c831a5b1e73c6c5ed3722.tar.gz binutils-e10d82fc3ed03ee03f7c831a5b1e73c6c5ed3722.tar.bz2 |
debug registers: Add missing debug version entry for FEAT_Debugv8p8
The Arm Architecture Reference Manual defines debug version 0b1010 for
FEAT_Debugv8p8. This is used to identify valid hardware debug registers.
gdb currently only knows about versions up to FEAT_Debugv8p4. This patch
teaches gdb about this new version.
No visible changes should happen as consequence of this patch, but in the
future gdb will be able to identify debug registers in newer hardware.
Regression-tested on aarch64-linux Ubuntu 20.04/22.04.
-rw-r--r-- | gdb/nat/aarch64-hw-point.h | 1 | ||||
-rw-r--r-- | gdb/nat/aarch64-linux-hw-point.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/gdb/nat/aarch64-hw-point.h b/gdb/nat/aarch64-hw-point.h index 13ec0c5..f4662f7 100644 --- a/gdb/nat/aarch64-hw-point.h +++ b/gdb/nat/aarch64-hw-point.h @@ -58,6 +58,7 @@ #define AARCH64_DEBUG_ARCH_V8_1 0x7 #define AARCH64_DEBUG_ARCH_V8_2 0x8 #define AARCH64_DEBUG_ARCH_V8_4 0x9 +#define AARCH64_DEBUG_ARCH_V8_8 0x10 /* ptrace expects control registers to be formatted as follows: diff --git a/gdb/nat/aarch64-linux-hw-point.c b/gdb/nat/aarch64-linux-hw-point.c index 096c34f..ccb47cd 100644 --- a/gdb/nat/aarch64-linux-hw-point.c +++ b/gdb/nat/aarch64-linux-hw-point.c @@ -232,6 +232,8 @@ compatible_debug_arch (unsigned int debug_arch) return true; if (debug_arch == AARCH64_DEBUG_ARCH_V8_4) return true; + if (debug_arch == AARCH64_DEBUG_ARCH_V8_8) + return true; return false; } |