diff options
author | Doug Evans <dje@google.com> | 2013-05-22 16:30:24 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-05-22 16:30:24 +0000 |
commit | e6ba475a03a71b49b49261e313812dbf4ce82ca5 (patch) | |
tree | a37cda5037f13d9ece85f465afc1a17556945f3c /gdb/testsuite | |
parent | d85c48475feb99f061897d641adc54881a41762f (diff) | |
download | gdb-e6ba475a03a71b49b49261e313812dbf4ce82ca5.zip gdb-e6ba475a03a71b49b49261e313812dbf4ce82ca5.tar.gz gdb-e6ba475a03a71b49b49261e313812dbf4ce82ca5.tar.bz2 |
* gdb.threads/wp-replication.c (main): Insert some code at the start
to ensure the breakpoint on main is only hit once. Fix comment.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/wp-replication.c | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8d77b7d..300eb75 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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> diff --git a/gdb/testsuite/gdb.threads/wp-replication.c b/gdb/testsuite/gdb.threads/wp-replication.c index a0afab2..cac534e 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 (); } |