aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2013-07-08 11:35:49 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2013-07-08 11:35:49 +0000
commit0329e9fbe830993d1f79a8cca816d6c7b6028dc6 (patch)
tree1ade42fc7b3b4fd17c17a7894004c35dcc52ec62 /gdb
parent1953058fe9068211402501410df1eece86b514e7 (diff)
downloadgdb-0329e9fbe830993d1f79a8cca816d6c7b6028dc6.zip
gdb-0329e9fbe830993d1f79a8cca816d6c7b6028dc6.tar.gz
gdb-0329e9fbe830993d1f79a8cca816d6c7b6028dc6.tar.bz2
2013-07-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
* gdb.threads/wp-replication.exp: Stop counting available hardware watchpoints after NR_THREADS iterations.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.threads/wp-replication.exp8
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8db2613..2c0f24b 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2013-07-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * gdb.threads/wp-replication.exp: Stop counting available hardware
+ watchpoints after NR_THREADS iterations.
+
2013-07-08 Andrew Burgess <aburgess@broadcom.com>
* gdb.python/py-explore.exp: Add $gdb_prompt to test regexp.
diff --git a/gdb/testsuite/gdb.threads/wp-replication.exp b/gdb/testsuite/gdb.threads/wp-replication.exp
index 8927a43..c6a13b9 100644
--- a/gdb/testsuite/gdb.threads/wp-replication.exp
+++ b/gdb/testsuite/gdb.threads/wp-replication.exp
@@ -81,6 +81,14 @@ while { $done == 0 } {
gdb_test_multiple "continue" "watchpoint created successfully" {
-re ".*Breakpoint 2, empty_cycle \\(\\).*$gdb_prompt $" {
incr hwatch_count
+
+ # Some targets (like S/390) behave as though supporting
+ # unlimited hardware watchpoints. In this case we just take a
+ # safe exit out of the loop.
+ if { $hwatch_count == $NR_THREADS } {
+ set done 1
+ break
+ }
}
-re ".*Could not insert hardware watchpoint.*$gdb_prompt $" {
set done 1