diff options
author | Carl Love <cel@us.ibm.com> | 2022-10-12 16:58:25 -0400 |
---|---|---|
committer | Carl Love <cel@us.ibm.com> | 2022-10-12 16:58:25 -0400 |
commit | e610d38f83248ba2cbea4d8735c3f7ee5953a38b (patch) | |
tree | a1f8aa3703be5b0cb3987670950cd5049bbeadc0 /gdb/testsuite/gdb.base | |
parent | c0f327b81d1e46a9f860f3796eafc49d83b3d257 (diff) | |
download | gdb-e610d38f83248ba2cbea4d8735c3f7ee5953a38b.zip gdb-e610d38f83248ba2cbea4d8735c3f7ee5953a38b.tar.gz gdb-e610d38f83248ba2cbea4d8735c3f7ee5953a38b.tar.bz2 |
PowerPC, fix test gdb.base/watchpoint-stops-at-right-insn.exp
Test gdb.base/watchpoint-stops-at-right-insn.exp generates 4 test errors
on Power 9. The test uses the test [target_info exists gdb,
no_hardware_watchpoints] to determine if the processor supports hardware
watchpoints. The check only examines the processor type to determine if
it supports hardware watchpoints. Note, the test works fine on Power 10.
The PowerPC processors support hardware watchpoints with the
exception of Power 9. The hardware watchpoint support is disabled on
Power 9. The test skip_hw_watchpoint_tests must be used to correctly
determine if the PowerPC processor supports hardware watchpoints.
This patch replaces the [target_info exists gdb,no_hardware_watchpoints]
with the skip_hw_watchpoint_tests_p check. With the patch, the test is
disabled on Power 9 but runs on all other PowerPC processors.
The patch has been tested on Power 9, Power 10 and X86-64 with no
regression failures.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp b/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp index f9adb1f..6c445d4 100644 --- a/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp +++ b/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp @@ -71,7 +71,7 @@ standard_testfile # No use testing this if we can't use hardware watchpoints. -if {[target_info exists gdb,no_hardware_watchpoints]} { +if {[skip_hw_watchpoint_tests]} { return -1 } |