aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2021-04-08 15:32:29 -0300
committerLuis Machado <luis.machado@linaro.org>2021-04-26 09:50:21 -0300
commit21f91785752b59d03117f7803b7e1c9a58e62dbe (patch)
treeefd3c5e6334e85dd04fc60b401cf9b17cd283759 /gdb/testsuite/gdb.arch
parenta7664973b24a242cd9ea17deb5eaf503065fc0bd (diff)
downloadgdb-21f91785752b59d03117f7803b7e1c9a58e62dbe.zip
gdb-21f91785752b59d03117f7803b7e1c9a58e62dbe.tar.gz
gdb-21f91785752b59d03117f7803b7e1c9a58e62dbe.tar.bz2
Fix gdb.arch/aarch64-dbreg-contents.exp FAIL
The test checks for a particular ARCH level, but it needs to check for ARCH levels from a minimum and upwards. gdb/testsuite/ChangeLog: 2021-04-26 Luis Machado <luis.machado@linaro.org> * gdb.arch/aarch64-dbreg-contents.c (set_watchpoint): Fix arch level comparison.
Diffstat (limited to 'gdb/testsuite/gdb.arch')
-rw-r--r--gdb/testsuite/gdb.arch/aarch64-dbreg-contents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.arch/aarch64-dbreg-contents.c b/gdb/testsuite/gdb.arch/aarch64-dbreg-contents.c
index ca690f6..64f0200 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));