aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
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.python
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.python')
-rw-r--r--gdb/testsuite/gdb.python/py-breakpoint.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp
index d5e259f..07a7362 100644
--- a/gdb/testsuite/gdb.python/py-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-breakpoint.exp
@@ -130,6 +130,11 @@ gdb_test "python print blist\[len(blist)-1\].commands" "print \"Command for brea
# Start with a fresh gdb.
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 "Cannot run to main."
return 0