2012-01-27 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Fri, 27 Jan 2012 13:59:57 +0000 (13:59 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 27 Jan 2012 13:59:57 +0000 (13:59 +0000)
* gdb.base/watchpoint.exp (top level): Re-enable hardware
watchpoints sooner.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/watchpoint.exp

index c32f46cf5cc900dd25b4bac3a8afab6dfc7d0393..7f1776e5384c320ca66739eec988cfe80d897e0a 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-27  Pedro Alves  <palves@redhat.com>
+
+       * gdb.base/watchpoint.exp (top level): Re-enable hardware
+       watchpoints sooner.
+
 2012-01-27  Pedro Alves  <palves@redhat.com>
 
        * gdb.base/watchpoint.exp (top level): Delete watch ival3.
index 6eba4b0882d52b833412c90f81d27acc2ab934a3..a3d5234b05e4144f8d4514bcfc5b58aceac3fd76 100644 (file)
@@ -875,6 +875,11 @@ if [initialize] then {
        "Expression cannot be implemented with read/access watchpoint..*" \
        "rwatch disallowed when can-set-hw-watchpoints cleared"
 
+    # Re-enable hardware watchpoints if necessary.
+    if ![target_info exists gdb,no_hardware_watchpoints] {
+        gdb_test_no_output "set can-use-hw-watchpoints 1" ""
+    }
+
     test_watchpoint_and_breakpoint
 
     test_watchpoint_in_big_blob
@@ -885,11 +890,6 @@ if [initialize] then {
 
     test_watch_location
 
-    # Re-enable hardware watchpoints if necessary.
-    if ![target_info exists gdb,no_hardware_watchpoints] {
-        gdb_test_no_output "set can-use-hw-watchpoints 1" ""
-    }
-
     test_wide_location_1
     test_wide_location_2
 }