aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-watch.exp
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-09-06 23:25:41 +0000
committerDaniel Jacobowitz <drow@false.org>2007-09-06 23:25:41 +0000
commit3e34759906232cdbcec638c4dd9cf556a4254669 (patch)
tree606acbc3730063808d06aa943fd9943f9c6e40de /gdb/testsuite/gdb.mi/mi-watch.exp
parent93b1ec2cbf071210466c8c848830b214508f6398 (diff)
downloadgdb-3e34759906232cdbcec638c4dd9cf556a4254669.zip
gdb-3e34759906232cdbcec638c4dd9cf556a4254669.tar.gz
gdb-3e34759906232cdbcec638c4dd9cf556a4254669.tar.bz2
* gdb.mi/mi2-watch.exp: Set can-use-hw-watchpoints to 0 if required.
* gdb.mi/mi-watch.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-watch.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi-watch.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-watch.exp b/gdb/testsuite/gdb.mi/mi-watch.exp
index ffd638f..f9a4723 100644
--- a/gdb/testsuite/gdb.mi/mi-watch.exp
+++ b/gdb/testsuite/gdb.mi/mi-watch.exp
@@ -167,6 +167,11 @@ proc test_watchpoint_triggering {} {
}
}
+# Disable hardware watchpoints if necessary.
+if [target_info exists gdb,no_hardware_watchpoints] {
+ mi_gdb_test "-gdb-set can-use-hw-watchpoints 0" "\\^done" ""
+}
+
mi_runto callee4
test_watchpoint_creation_and_listing
#test_rwatch_creation_and_listing