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 | 8d2ed360af754c6bf6b0b7c3e37db570f18f39c0 (patch) | |
tree | 6eb0a5d8576949322bb3f7d0cff5cc8a9a400029 | |
parent | bc757aa4df42772de341c260a0b87b5d0dad986a (diff) | |
download | gdb-8d2ed360af754c6bf6b0b7c3e37db570f18f39c0.tar.gz |
* gdb.python/py-breakpoint.exp: Re-set can-use-hw-watchpoints
flag after restarting GDB if necessary.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-breakpoint.exp | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e66e89a1c22..c7e60d730ec 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2011-07-22 Ulrich Weigand <ulrich.weigand@linaro.org> + * gdb.python/py-breakpoint.exp: Re-set can-use-hw-watchpoints + flag after restarting GDB if necessary. + +2011-07-22 Ulrich Weigand <ulrich.weigand@linaro.org> + * gdb.python/py-shared.exp: Call gdb_load_shlibs. 2011-07-22 Pedro Alves <pedro@codesourcery.com> diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp index f0a83f1c093..e0dd08708e0 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 |