From: Doug Evans Date: Wed, 22 May 2013 16:30:24 +0000 (+0000) Subject: * gdb.threads/wp-replication.c (main): Insert some code at the start X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e6ba475a03a71b49b49261e313812dbf4ce82ca5;p=binutils-gdb.git * gdb.threads/wp-replication.c (main): Insert some code at the start to ensure the breakpoint on main is only hit once. Fix comment. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8d77b7df22e..300eb75a1d4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-05-22 Doug Evans + + * 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 Pedro Alves diff --git a/gdb/testsuite/gdb.threads/wp-replication.c b/gdb/testsuite/gdb.threads/wp-replication.c index a0afab2d90a..cac534e1942 100644 --- a/gdb/testsuite/gdb.threads/wp-replication.c +++ b/gdb/testsuite/gdb.threads/wp-replication.c @@ -75,10 +75,14 @@ main () 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 (); }