* gdb.python/py-breakpoint.exp: Re-set can-use-hw-watchpoints
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 22 Jul 2011 17:46:18 +0000 (17:46 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 22 Jul 2011 17:46:18 +0000 (17:46 +0000)
flag after restarting GDB if necessary.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-breakpoint.exp

index e66e89a1c222724087e97ff820b149ea00473211..c7e60d730ecc655ea221c3e7e22860086028eedc 100644 (file)
@@ -1,3 +1,8 @@
+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.
index f0a83f1c093fff72c5b2891b2e2bf5c40da59b0d..e0dd08708e006831f416104953821d344ee3204c 100644 (file)
@@ -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
This page took 0.039039 seconds and 4 git commands to generate.