diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2011-07-22 17:46:18 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2011-07-22 17:46:18 +0000 |
commit | 182b9acc4b043d7d313f94d217bb6e4f869e5f86 (patch) | |
tree | e5ef5233192c775836624e2d086d8a7d0e11e321 /gdb/testsuite/gdb.python | |
parent | e6052b5dd34f4f17f7e960bd36bebf6fd89608d4 (diff) | |
download | gdb-182b9acc4b043d7d313f94d217bb6e4f869e5f86.zip gdb-182b9acc4b043d7d313f94d217bb6e4f869e5f86.tar.gz gdb-182b9acc4b043d7d313f94d217bb6e4f869e5f86.tar.bz2 |
* gdb.python/py-breakpoint.exp: Re-set can-use-hw-watchpoints
flag after restarting GDB if necessary.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r-- | gdb/testsuite/gdb.python/py-breakpoint.exp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp index f0a83f1..e0dd087 100644 --- a/gdb/testsuite/gdb.python/py-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-breakpoint.exp @@ -186,6 +186,10 @@ gdb_test "continue" ".*\[Ww\]atchpoint.*result.*Old value = 0.*New value = 25.*m # 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 @@ -201,6 +205,10 @@ gdb_test "continue" ".*\[Ww\]atchpoint.*result.*Old value = 0.*New value = 25.*" # 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 |