diff options
author | Andrew Pinski <apinski@marvell.com> | 2021-10-21 17:02:44 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2021-10-21 19:02:02 +0000 |
commit | add3db9182348555b80ec850b58a6f423b0e6bc5 (patch) | |
tree | 3e0e7cac4d4d37a0276ccf36b5dab2ae91629a97 | |
parent | f81ce492b2a5b8ffc83b3e8d03c2acfa45ce50ce (diff) | |
download | binutils-add3db9182348555b80ec850b58a6f423b0e6bc5.zip binutils-add3db9182348555b80ec850b58a6f423b0e6bc5.tar.gz binutils-add3db9182348555b80ec850b58a6f423b0e6bc5.tar.bz2 |
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.
-rw-r--r-- | gdb/nat/aarch64-linux-hw-point.c | 2 | ||||
-rw-r--r-- | gdb/nat/aarch64-linux-hw-point.h | 1 |
2 files changed, 3 insertions, 0 deletions
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: |