Bug 18072 - 180 fails in gdb.base/watchpoint-reuse-slot.exp on aarch64-linux-gnu
Summary: 180 fails in gdb.base/watchpoint-reuse-slot.exp on aarch64-linux-gnu
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 18003 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-02 16:59 UTC by Yao Qi
Modified: 2018-04-18 18:57 UTC (History)
1 user (show)

See Also:
Host:
Target: aarch64-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yao Qi 2015-03-02 16:59:22 UTC
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
Comment 1 weimin.pan 2017-10-18 16:44:43 UTC
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'
Comment 2 Yao Qi 2017-10-19 07:53:04 UTC
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.
Comment 3 weimin.pan 2018-04-18 18:57:51 UTC
*** Bug 18003 has been marked as a duplicate of this bug. ***