aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/watch-cond.exp
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2010-06-18 16:51:10 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2010-06-18 16:51:10 +0000
commite075690553ca54b3ad15e9ebc643cdc879c341a9 (patch)
treea07a679de59728515d492800a70d486e6a5b117e /gdb/testsuite/gdb.base/watch-cond.exp
parentd8053d4d67fd1bed2aac3f56dd65baea1a0a7471 (diff)
downloadgdb-e075690553ca54b3ad15e9ebc643cdc879c341a9.zip
gdb-e075690553ca54b3ad15e9ebc643cdc879c341a9.tar.gz
gdb-e075690553ca54b3ad15e9ebc643cdc879c341a9.tar.bz2
* gdb.base/gdb11531.exp: Respect gdb,no_hardware_watchpoints flag.
* gdb.base/watch-cond.exp: Likewise. * gdb.python/py-breakpoint.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.base/watch-cond.exp')
-rw-r--r--gdb/testsuite/gdb.base/watch-cond.exp15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/watch-cond.exp b/gdb/testsuite/gdb.base/watch-cond.exp
index b79edc2..0273e4b 100644
--- a/gdb/testsuite/gdb.base/watch-cond.exp
+++ b/gdb/testsuite/gdb.base/watch-cond.exp
@@ -26,6 +26,11 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
return -1
}
+# Disable hardware watchpoints if necessary.
+if [target_info exists gdb,no_hardware_watchpoints] {
+ gdb_test_no_output "set can-use-hw-watchpoints 0" ""
+}
+
if ![runto_main] then {
fail "Can't run to main"
return
@@ -41,6 +46,11 @@ gdb_test "continue" \
clean_restart ${testfile}
+# Disable hardware watchpoints if necessary.
+if [target_info exists gdb,no_hardware_watchpoints] {
+ gdb_test_no_output "set can-use-hw-watchpoints 0" ""
+}
+
if ![runto_main] then {
fail "Can't run to main"
return
@@ -56,6 +66,11 @@ gdb_test "continue" \
clean_restart ${testfile}
+# Disable hardware watchpoints if necessary.
+if [target_info exists gdb,no_hardware_watchpoints] {
+ gdb_test_no_output "set can-use-hw-watchpoints 0" ""
+}
+
if ![runto_main] then {
fail "Can't run to main"
return