to ensure the breakpoint on main is only hit once. Fix comment.
+2013-05-22 Doug Evans <dje@google.com>
+
+ * gdb.threads/wp-replication.c (main): Insert some code at the start
+ to ensure the breakpoint on main is only hit once. Fix comment.
+
2013-05-21 Keith Seitz <keiths@redhat.com>
Pedro Alves <palves@redhat.com>
pthread_t threads[NR_THREADS];
int i;
+ /* Something to ensure that the breakpoint used to run to main
+ is only hit once. */
+ empty_cycle ();
+
while (watch_count_done == 0)
{
- /* GDB will modify the value of "i" at runtime and we will
- get past this point. */
+ /* GDB will modify the value of "watch_count_done" at runtime and we
+ will get past this point. */
empty_cycle ();
}