* 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.
This commit is contained in:
Doug Evans 2009-05-11 16:24:14 +00:00
parent 0090345643
commit e2009e9879
4 changed files with 9 additions and 3 deletions

View 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.

View 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);

View 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);

View 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);