aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/watchpoint.exp
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-01-27 13:59:57 +0000
committerPedro Alves <palves@redhat.com>2012-01-27 13:59:57 +0000
commitf2c8a051310a04f59e9193f616f15a78f8b6ad4d (patch)
tree23937d0351ce1fc0344a886dcfbf119df9445087 /gdb/testsuite/gdb.base/watchpoint.exp
parent654d7a9e202163de47638ce8d482e2677756ec28 (diff)
downloadgdb-f2c8a051310a04f59e9193f616f15a78f8b6ad4d.zip
gdb-f2c8a051310a04f59e9193f616f15a78f8b6ad4d.tar.gz
gdb-f2c8a051310a04f59e9193f616f15a78f8b6ad4d.tar.bz2
2012-01-27 Pedro Alves <palves@redhat.com>
* gdb.base/watchpoint.exp (top level): Re-enable hardware watchpoints sooner.
Diffstat (limited to 'gdb/testsuite/gdb.base/watchpoint.exp')
-rw-r--r--gdb/testsuite/gdb.base/watchpoint.exp10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp
index 6eba4b0..a3d5234 100644
--- a/gdb/testsuite/gdb.base/watchpoint.exp
+++ b/gdb/testsuite/gdb.base/watchpoint.exp
@@ -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
}