* gdb.threads/wp-replication.c (main): Insert some code at the start
to ensure the breakpoint on main is only hit once. Fix comment.
This commit is contained in:
parent
d85c48475f
commit
e6ba475a03
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue