]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb.mi/nsintrall.c (main): Fix off-by-one error.
authorDoug Evans <dje@google.com>
Mon, 11 May 2009 16:24:14 +0000 (16:24 +0000)
committerDoug Evans <dje@google.com>
Mon, 11 May 2009 16:24:14 +0000 (16:24 +0000)
* gdb.threads/pending-step.c (main): Fix off-by-one error.
* gdb.threads/schedlock.c (main): Fix off-by-one error.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/nsintrall.c
gdb/testsuite/gdb.threads/pending-step.c
gdb/testsuite/gdb.threads/schedlock.c

index c9d0f8fb4784f18dcc20804c2743ca956ce0d594..a9d5de7c1b334937f87b63ae5823e1a3e8bbfccf 100644 (file)
@@ -1,3 +1,9 @@
+2009-05-11  Doug Evans  <dje@sebabeach.org>
+
+       * 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  <jan.kratochvil@redhat.com>
 
        * gdb.cp/expand-sals.exp, gdb.cp/expand-sals.cc: New.
index 031497a3773843abdf1c17e66d5aacd31bd87b9e..410075fe14449f21f83d1746b628a9273e51efb5 100644 (file)
@@ -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);
index 7d25c2d04883a319af0012412133ae84ae234a56..ac387c1881679928484e29e144f2ba0bd4d3c8a8 100644 (file)
@@ -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);
index 2c4dc576fa80e85cb17ad2fdf0e0a74759edb23f..2bd352858ac4222b68c2584e9c46d284b70eb72b 100644 (file)
@@ -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);