From add3db9182348555b80ec850b58a6f423b0e6bc5 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 21 Oct 2021 17:02:44 +0000 Subject: Fix ARMv8.4 for hw watchpoint and breakpoint Just like my previoius patch for ARMv8.1 and v8.2 (49ecef2a7da2ee9df4), this adds ARMv8.4 debug arch as being compatible for hw watchpoint and breakpoints. --- gdb/nat/aarch64-linux-hw-point.c | 2 ++ gdb/nat/aarch64-linux-hw-point.h | 1 + 2 files changed, 3 insertions(+) diff --git a/gdb/nat/aarch64-linux-hw-point.c b/gdb/nat/aarch64-linux-hw-point.c index 5540a01..c073b43 100644 --- a/gdb/nat/aarch64-linux-hw-point.c +++ b/gdb/nat/aarch64-linux-hw-point.c @@ -781,6 +781,8 @@ compatible_debug_arch (unsigned int debug_arch) return true; if (debug_arch == AARCH64_DEBUG_ARCH_V8_2) return true; + if (debug_arch == AARCH64_DEBUG_ARCH_V8_4) + return true; return false; } diff --git a/gdb/nat/aarch64-linux-hw-point.h b/gdb/nat/aarch64-linux-hw-point.h index 2fc4b40..ad32a67 100644 --- a/gdb/nat/aarch64-linux-hw-point.h +++ b/gdb/nat/aarch64-linux-hw-point.h @@ -72,6 +72,7 @@ #define AARCH64_DEBUG_ARCH_V8 0x6 #define AARCH64_DEBUG_ARCH_V8_1 0x7 #define AARCH64_DEBUG_ARCH_V8_2 0x8 +#define AARCH64_DEBUG_ARCH_V8_4 0x9 /* ptrace expects control registers to be formatted as follows: -- cgit v1.1