Add new debug architecture version
authorLuis Machado <luis.machado@arm.com>
Tue, 25 Apr 2023 08:17:43 +0000 (09:17 +0100)
committerLuis Machado <luis.machado@arm.com>
Wed, 26 Apr 2023 06:00:12 +0000 (07:00 +0100)
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 <luis.machado@arm.com>
gdb/nat/aarch64-hw-point.h
gdb/nat/aarch64-linux-hw-point.c

index f4662f7c782c3a5c9e2be9cf840427460e4baa7f..c19681422da893b8118b44c117b7383109b8c4b1 100644 (file)
@@ -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:
 
index ccb47cd5aa2a95778a30318332ab1bca4f12ff20..8cf8b31530c28036a61822c164dc848e482fe0d8 100644 (file)
@@ -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;
 }