* gdb.threads/wp-replication.exp: Stop counting available hardware
watchpoints after NR_THREADS iterations.
+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.
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