aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@arm.com>2023-04-25 09:17:43 +0100
committerLuis Machado <luis.machado@arm.com>2023-04-26 07:00:12 +0100
commitdc449cb963879edebc9b6c8bdcadb33f60448a5c (patch)
tree277493640cec1eeff2c1bcf6fce3e8a455c0af29
parentb4617f790475aa8b23552c07fa0242b8e9ee9fab (diff)
downloadgdb-dc449cb963879edebc9b6c8bdcadb33f60448a5c.zip
gdb-dc449cb963879edebc9b6c8bdcadb33f60448a5c.tar.gz
gdb-dc449cb963879edebc9b6c8bdcadb33f60448a5c.tar.bz2
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 <luis.machado@arm.com>
-rw-r--r--gdb/nat/aarch64-hw-point.h2
-rw-r--r--gdb/nat/aarch64-linux-hw-point.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/gdb/nat/aarch64-hw-point.h b/gdb/nat/aarch64-hw-point.h
index f4662f7..c196814 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 ccb47cd..8cf8b31 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;
}