This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Fix wp-replication.exp for targets that provide only 1 hw watchpoint
- From: Edjunior Barbosa Machado <emachado at linux dot vnet dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Cc: lgustavo at codesourcery dot com
- Date: Fri, 24 May 2013 00:25:09 -0300
- Subject: [PATCH] Fix wp-replication.exp for targets that provide only 1 hw watchpoint
(sorry, my previous message got truncated. Resending...)
Hi,
current wp-replication.exp testcase counts 2 hw watchpoints even when the target
provides only 1 hw watch, resulting in several unexpected errors. Successfully
tested on x86 (with 4 hw watchpoints available) and ppc64 server (with 1 hw
watch), this patch intends to fix this issue. Ok?
Thanks,
--
Edjunior
gdb/testsuite/ChangeLog
2013-05-24 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
* gdb.threads/wp-replication.exp: Fix accounting of hardware watchpoints
on targets that provide only one hw watchpoint.
---
gdb/testsuite/gdb.threads/wp-replication.exp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/gdb/testsuite/gdb.threads/wp-replication.exp b/gdb/testsuite/gdb.threads/wp-replication.exp
index 8927a43..f73b763 100644
--- a/gdb/testsuite/gdb.threads/wp-replication.exp
+++ b/gdb/testsuite/gdb.threads/wp-replication.exp
@@ -78,6 +78,10 @@ while { $done == 0 } {
}
}
+ if { $done == 1 } {
+ break
+ }
+
gdb_test_multiple "continue" "watchpoint created successfully" {
-re ".*Breakpoint 2, empty_cycle \\(\\).*$gdb_prompt $" {
incr hwatch_count
--
1.7.1