aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-05-11 16:24:14 +0000
committerDoug Evans <dje@google.com>2009-05-11 16:24:14 +0000
commite2009e9879336fcf86f6f11b4c22d273e3ab2717 (patch)
tree8868061eb8bea46203ea0e69a169a0c60b4152da /gdb/testsuite/gdb.threads
parent0090345643feb25a5214871384c4cccf55f2e991 (diff)
downloadgdb-e2009e9879336fcf86f6f11b4c22d273e3ab2717.zip
gdb-e2009e9879336fcf86f6f11b4c22d273e3ab2717.tar.gz
gdb-e2009e9879336fcf86f6f11b4c22d273e3ab2717.tar.bz2
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r--gdb/testsuite/gdb.threads/pending-step.c2
-rw-r--r--gdb/testsuite/gdb.threads/schedlock.c2
2 files changed, 2 insertions, 2 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);
diff --git a/gdb/testsuite/gdb.threads/schedlock.c b/gdb/testsuite/gdb.threads/schedlock.c
index 2c4dc57..2bd3528 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);