summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/watchpoint-hw.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/watchpoint-hw.exp')
-rw-r--r--gdb/testsuite/gdb.base/watchpoint-hw.exp9
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint-hw.exp b/gdb/testsuite/gdb.base/watchpoint-hw.exp
index 3925929649a..3706699037b 100644
--- a/gdb/testsuite/gdb.base/watchpoint-hw.exp
+++ b/gdb/testsuite/gdb.base/watchpoint-hw.exp
@@ -13,12 +13,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Arch not supporting hw watchpoints does not imply no_hardware_watchpoints set.
-if {(![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"]
- && ![istarget "ia64-*-*"] && ![istarget "s390*-*-*"])
- || [target_info exists gdb,no_hardware_watchpoints]} then {
- verbose "Skipping watchpoint-hw test."
- return
+
+if {[skip_hw_watchpoint_tests]} {
+ return 0
}
set testfile watchpoint-hw