aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-08 11:40:32 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:58 -0700
commite379cbb128e3e672af03bdbb97e6e4085925d1bc (patch)
tree22d4eea8c2afb98a18cb7314ad0c42b02884f647 /gdb/testsuite/lib
parent9bc8ef1d750796d69d38f1822c8dd6df5729a187 (diff)
downloadgdb-e379cbb128e3e672af03bdbb97e6e4085925d1bc.zip
gdb-e379cbb128e3e672af03bdbb97e6e4085925d1bc.tar.gz
gdb-e379cbb128e3e672af03bdbb97e6e4085925d1bc.tar.bz2
Rename to allow_hw_watchpoint_tests
This changes skip_hw_watchpoint_tests to invert the sense, and renames it to allow_hw_watchpoint_tests.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 446f89a..7143908 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -4039,12 +4039,12 @@ proc skip_hw_breakpoint_tests {} {
return 1
}
-# Return a 1 if we should skip tests that require hardware watchpoints
+# Return a 1 if we should run tests that require hardware watchpoints
-proc skip_hw_watchpoint_tests {} {
+proc allow_hw_watchpoint_tests {} {
# Skip tests if requested by the board
if { [target_info exists gdb,no_hardware_watchpoints]} {
- return 1
+ return 0
}
# These targets support hardware watchpoints natively
@@ -4058,17 +4058,17 @@ proc skip_hw_watchpoint_tests {} {
|| [istarget "aarch64*-*-*"]
|| ([istarget "powerpc*-*-linux*"] && [has_hw_wp_support])
|| [istarget "s390*-*-*"] } {
- return 0
+ return 1
}
- return 1
+ return 0
}
# Return a 1 if we should run tests that require *multiple* hardware
# watchpoints to be active at the same time
proc allow_hw_watchpoint_multi_tests {} {
- if { [skip_hw_watchpoint_tests] } {
+ if { ![allow_hw_watchpoint_tests] } {
return 0
}
@@ -4084,7 +4084,7 @@ proc allow_hw_watchpoint_multi_tests {} {
# Return a 1 if we should run tests that require read/access watchpoints
proc allow_hw_watchpoint_access_tests {} {
- if { [skip_hw_watchpoint_tests] } {
+ if { ![allow_hw_watchpoint_tests] } {
return 0
}