Fix gdb.arch/aarch64-dbreg-contents.exp FAIL
authorLuis Machado <luis.machado@linaro.org>
Thu, 8 Apr 2021 18:32:29 +0000 (15:32 -0300)
committerLuis Machado <luis.machado@linaro.org>
Mon, 26 Apr 2021 12:50:21 +0000 (09:50 -0300)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/aarch64-dbreg-contents.c

index 8f41b3a82270cad90671e6ef5751178e15c10673..6a400dc3c5d4ba4ea707bdc6b2678ef4aaf4bc00 100644 (file)
@@ -1,3 +1,8 @@
+2021-04-26  Luis Machado  <luis.machado@linaro.org>
+
+       * gdb.arch/aarch64-dbreg-contents.c (set_watchpoint): Fix arch level
+       comparison.
+
 2021-04-25  Lancelot Six  <lsix@lancelotsix.com>
 
        PR gdb/22640
index ca690f63de87c5f51acbd464ec2d32fe29334fb2..64f020054696376ea19a52ffed50e70e0bcba97a 100644 (file)
@@ -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));