[binutils-gdb] gdb/testsuite: Skip rwatch in watchpoint-unaligned.exp on s390x
Kevin Buettner via Gdb-cvs <[email protected]>
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fe97d7c31d7e81eec11243e269139a08632d085f commit fe97d7c31d7e81eec11243e269139a08632d085f Author: Kevin Buettner <[email protected]> Date: Tue Mar 10 17:14:10 2026 -0700 gdb/testsuite: Skip rwatch in watchpoint-unaligned.exp on s390x The watchpoint-unaligned.exp test requires both read and write hardware watchpoints. s390x only supports write watchpoints, causing one test failure when the rwatch command fails with "Target does not support this type of hardware watchpoint." This commit causes the test using the rwatch command in this file to be skipped when allow_hw_watchpoint_access_tests is false. Co-Authored-By: Tom de Vries <[email protected]> Approved-By: Tom de Vries <[email protected]> Diff: --- gdb/testsuite/gdb.base/watchpoint-unaligned.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/testsuite/gdb.base/watchpoint-unaligned.exp b/gdb/testsuite/gdb.base/watchpoint-unaligned.exp index d3bba6ae010..8b929e5de4e 100644 --- a/gdb/testsuite/gdb.base/watchpoint-unaligned.exp +++ b/gdb/testsuite/gdb.base/watchpoint-unaligned.exp @@ -219,6 +219,9 @@ foreach_with_prefix fun { write_size8twice read_size8twice } { if { $fun == "write_size8twice" } { set cmd "watch" } else { + if {![allow_hw_watchpoint_access_tests]} { + continue + } set cmd "rwatch" } foreach_with_prefix offset { 0 1 } {