From: Doug Evans Date: Mon, 11 May 2009 16:24:14 +0000 (+0000) Subject: * gdb.mi/nsintrall.c (main): Fix off-by-one error. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2009e9879336fcf86f6f11b4c22d273e3ab2717;p=binutils-gdb.git * gdb.mi/nsintrall.c (main): Fix off-by-one error. * gdb.threads/pending-step.c (main): Fix off-by-one error. * gdb.threads/schedlock.c (main): Fix off-by-one error. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c9d0f8fb478..a9d5de7c1b3 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2009-05-11 Doug Evans + + * gdb.mi/nsintrall.c (main): Fix off-by-one error. + * gdb.threads/pending-step.c (main): Fix off-by-one error. + * gdb.threads/schedlock.c (main): Fix off-by-one error. + 2009-05-11 Jan Kratochvil * gdb.cp/expand-sals.exp, gdb.cp/expand-sals.cc: New. diff --git a/gdb/testsuite/gdb.mi/nsintrall.c b/gdb/testsuite/gdb.mi/nsintrall.c index 031497a3773..410075fe144 100644 --- a/gdb/testsuite/gdb.mi/nsintrall.c +++ b/gdb/testsuite/gdb.mi/nsintrall.c @@ -35,7 +35,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); diff --git a/gdb/testsuite/gdb.threads/pending-step.c b/gdb/testsuite/gdb.threads/pending-step.c index 7d25c2d0488..ac387c18816 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); diff --git a/gdb/testsuite/gdb.threads/schedlock.c b/gdb/testsuite/gdb.threads/schedlock.c index 2c4dc576fa8..2bd352858ac 100644 --- a/gdb/testsuite/gdb.threads/schedlock.c +++ b/gdb/testsuite/gdb.threads/schedlock.c @@ -35,7 +35,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);