[PATCH] Fix gdb.arch/aarch64-dbreg-contents.exp FAIL
Luis Machado
luis.machado@linaro.org
Fri Apr 16 15:42:05 GMT 2021
The test checks for a particular ARCH level, but it needs to check for
ARCH levels from a minimum and upwards.
---
gdb/testsuite/gdb.arch/aarch64-dbreg-contents.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.arch/aarch64-dbreg-contents.c b/gdb/testsuite/gdb.arch/aarch64-dbreg-contents.c
index ca690f63de8..64f02005469 100644
--- a/gdb/testsuite/gdb.arch/aarch64-dbreg-contents.c
+++ b/gdb/testsuite/gdb.arch/aarch64-dbreg-contents.c
@@ -54,7 +54,7 @@ set_watchpoint (pid_t pid, volatile void *addr, unsigned len_mask)
errno = 0;
l = ptrace (PTRACE_GETREGSET, pid, NT_ARM_HW_WATCH, &iov);
assert (l == 0);
- assert (AARCH64_DEBUG_ARCH (dreg_state.dbg_info) == AARCH64_DEBUG_ARCH_V8);
+ assert (AARCH64_DEBUG_ARCH (dreg_state.dbg_info) >= AARCH64_DEBUG_ARCH_V8);
assert (AARCH64_DEBUG_NUM_SLOTS (dreg_state.dbg_info) >= 1);
assert (!DR_CONTROL_ENABLED (dreg_state.dbg_regs[0].ctrl));
--
2.25.1
More information about the Gdb-patches
mailing list