X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.base%2Fwatchpoint-hw-hit-once.exp;h=49c0d6ac31637f9c39fdc093b92962f730425e77;hb=13b448cdf796fdc4a92e37a6bc20ce785b7c65dd;hp=9783cbd944ed0d06e0d9ee9f3e1f3e6cd4233202;hpb=4c38e0a4fcb69f8586d8db0b9cdb8dbab5980811;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp b/gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp index 9783cbd944..49c0d6ac31 100644 --- a/gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp +++ b/gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp @@ -1,4 +1,4 @@ -# Copyright 2009, 2010 Free Software Foundation, Inc. +# Copyright 2009-2014 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -13,12 +13,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# Arch not supporting hw watchpoints does not imply no_hardware_watchpoints set. -if {(![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] - && ![istarget "ia64-*-*"]) - || [target_info exists gdb,no_hardware_watchpoints]} then { - verbose "Skipping watchpoint-hw-hit-once test." - return +if {[skip_hw_watchpoint_access_tests]} { + return 0 } set test watchpoint-hw-hit-once @@ -33,7 +29,7 @@ if ![runto_main] { gdb_test "rwatch watchee" -gdb_breakpoint [gdb_get_line_number "break-at-exit"] +gdb_breakpoint [gdb_get_line_number "dummy = 2"] gdb_test "continue" "Continuing.\r\nHardware read watchpoint \[0-9\]+: watchee\r\n\r\nValue = 0\r\n.*"