diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-11-09 04:44:17 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-11-09 04:44:17 +0000 |
commit | efd11a33a137b2c48728539f9d695fc1bea6fb40 (patch) | |
tree | f9c5d3c212b75b16f0611e23ce5981b1467c3254 /gdb/testsuite/gdb.base/watchpoint.exp | |
parent | d9435e4b81ece9aaacb42f27b6b4b77818fb6f5f (diff) | |
download | gdb-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.exp | 8 |
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" { |