aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/watchpoint.exp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-11-09 04:44:17 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-11-09 04:44:17 +0000
commitefd11a33a137b2c48728539f9d695fc1bea6fb40 (patch)
treef9c5d3c212b75b16f0611e23ce5981b1467c3254 /gdb/testsuite/gdb.base/watchpoint.exp
parentd9435e4b81ece9aaacb42f27b6b4b77818fb6f5f (diff)
downloadgdb-efd11a33a137b2c48728539f9d695fc1bea6fb40.zip
gdb-efd11a33a137b2c48728539f9d695fc1bea6fb40.tar.gz
gdb-efd11a33a137b2c48728539f9d695fc1bea6fb40.tar.bz2
gdb/testsuite/
* gdb.base/maint.exp: Expect "." prefix. * gdb.base/nodebug.exp: Expect "." Likewise. * gdb.base/sepsymtab.exp: Expect "." Likewise. * gdb.base/watchpoint-cond-gone.exp: Likewise. * gdb.base/watchpoint.exp: Expect a software watch to be created for POWER server processors.
Diffstat (limited to 'gdb/testsuite/gdb.base/watchpoint.exp')
-rw-r--r--gdb/testsuite/gdb.base/watchpoint.exp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp
index 01c0c1c..6721bda 100644
--- a/gdb/testsuite/gdb.base/watchpoint.exp
+++ b/gdb/testsuite/gdb.base/watchpoint.exp
@@ -683,7 +683,13 @@ proc test_inaccessible_watchpoint {} {
"$watchpoint_msg \[0-9\]+: \\*\\(int \\*\\) 0"
delete_breakpoints
- gdb_test "watch *global_ptr" "$watchpoint_msg \[0-9\]+: \\*global_ptr"
+ # This step requires two HW watchpoints. Since PPC Server only has
+ # a single one, it will use a SW watchpoint in this case.
+ if [istarget powerpc64-*] {
+ set watchpoint_msg "Watchpoint"
+ }
+
+ gdb_test "watch *global_ptr" "$watchpoint_msg \[0-9\]+: \\\*global_ptr"
gdb_test "set \$global_ptr_breakpoint_number = \$bpnum" ""
gdb_test "next" ".*global_ptr = buf.*" "global_ptr next"
gdb_test_multiple "next" "next over ptr init" {