From dc449cb963879edebc9b6c8bdcadb33f60448a5c Mon Sep 17 00:00:00 2001 From: Luis Machado Date: Tue, 25 Apr 2023 09:17:43 +0100 Subject: [PATCH] Add new debug architecture version Teach gdb about a new debug architecture version for AArch64 (0x11). No user-visible changes. Regression-tested on aarch64-linux Ubuntu 20.04/22.04. Signed-off-by: Luis Machado --- gdb/nat/aarch64-hw-point.h | 2 ++ gdb/nat/aarch64-linux-hw-point.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gdb/nat/aarch64-hw-point.h b/gdb/nat/aarch64-hw-point.h index f4662f7c782..c19681422da 100644 --- a/gdb/nat/aarch64-hw-point.h +++ b/gdb/nat/aarch64-hw-point.h @@ -59,6 +59,8 @@ #define AARCH64_DEBUG_ARCH_V8_2 0x8 #define AARCH64_DEBUG_ARCH_V8_4 0x9 #define AARCH64_DEBUG_ARCH_V8_8 0x10 +/* Armv8.9 debug architecture. */ +#define AARCH64_DEBUG_ARCH_V8_9 0x11 /* 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 ccb47cd5aa2..8cf8b31530c 100644 --- a/gdb/nat/aarch64-linux-hw-point.c +++ b/gdb/nat/aarch64-linux-hw-point.c @@ -234,6 +234,8 @@ compatible_debug_arch (unsigned int debug_arch) return true; if (debug_arch == AARCH64_DEBUG_ARCH_V8_8) return true; + if (debug_arch == AARCH64_DEBUG_ARCH_V8_9) + return true; return false; } -- 2.30.2