I see many fails in aarch64-linux-gnu gdb testing.... stepi^M Warning:^M Cannot insert hardware breakpoint 80.^M Could not insert hardware breakpoints:^M You may have requested too many hardware breakpoints/watchpoints.^M ^M (gdb) FAIL: gdb.base/watchpoint-reuse-slot.exp: always-inserted off: watch x hbreak: : width 1, iter 0: base + 1: stepi advanced
The test is now passing with upstream gdb: % make check TESTS="gdb.base/watchpoint-reuse-slot.exp" make[1]: Entering directory '/home/wepan/binutils-gdb/gdb/testsuite' Nothing to be done for all... make check-single make[2]: Entering directory '/home/wepan/binutils-gdb/gdb/testsuite' rootme=`pwd`; export rootme; srcdir=. ; export srcdir ; EXPECT=`if [ "${READ1}" != "" ] ; then echo ${rootme}/expect-read1; elif [ -f ${rootme}/../../expect/expect ] ; then echo ${rootme}/../../expect/expect ; else echo expect ; fi` ; export EXPECT ; EXEEXT= ; export EXEEXT ; LD_LIBRARY_PATH=$rootme/../../expect:$rootme/../../libstdc++:$rootme/../../tk/unix:$rootme/../../tcl/unix:$rootme/../../bfd:$rootme/../../opcodes:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; if [ -f ${rootme}/../../expect/expect ] ; then TCL_LIBRARY=${srcdir}/../../tcl/library ; export TCL_LIBRARY ; fi ; runtest --status gdb.base/watchpoint-reuse-slot.exp Test Run By wepan on Wed Oct 18 09:35:30 2017 Native configuration is aarch64-unknown-linux-gnu === gdb tests === Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using /home/wepan/binutils-gdb/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file. Running /home/wepan/binutils-gdb/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp ... === gdb Summary === # of expected passes 1521 /home/wepan/binutils-gdb/gdb/testsuite/../../gdb/gdb version 8.0.50.20170915-git -nw -nx -data-directory /home/wepan/binutils-gdb/gdb/testsuite/../data-directory make[2]: Leaving directory '/home/wepan/binutils-gdb/gdb/testsuite' make[1]: Leaving directory '/home/wepan/binutils-gdb/gdb/testsuite'
This bug was fixed by commit ca5fd19bfb2a41fae7696d67d1f4dce5d5a9053a (watchpoint-reuse-slot.exp: skip setting HW breakpoints on some address), but I forgot to mention the PR in commit log, so that commit wasn't associated with this PR. Thanks for verifying this. I'll close this bug.
*** Bug 18003 has been marked as a duplicate of this bug. ***