diff options
Diffstat (limited to 'gdb/testsuite/gdb.threads/pending-step.c')
-rw-r--r-- | gdb/testsuite/gdb.threads/pending-step.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.threads/pending-step.c b/gdb/testsuite/gdb.threads/pending-step.c index 7d25c2d..ac387c1 100644 --- a/gdb/testsuite/gdb.threads/pending-step.c +++ b/gdb/testsuite/gdb.threads/pending-step.c @@ -34,7 +34,7 @@ int main() { for (i = 1; i <= NUM; i++) { args[i] = 1; - res = pthread_create(&threads[i], + res = pthread_create(&threads[i - 1], NULL, thread_function, (void *) i); |