diff options
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/manythreads.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4d0d2c3..29f35e1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> + + * gdb.threads/manythreads.c: Reduce thread stack size. + 2004-04-23 Jeff Johnston <jjohnstn@redhat.com> * gdb.threads/manythreads.c: Add copyright notice. diff --git a/gdb/testsuite/gdb.threads/manythreads.c b/gdb/testsuite/gdb.threads/manythreads.c index bc0d9b6..e39412c 100644 --- a/gdb/testsuite/gdb.threads/manythreads.c +++ b/gdb/testsuite/gdb.threads/manythreads.c @@ -24,6 +24,7 @@ #include <pthread.h> #include <stdio.h> +#include <limits.h> void * thread_function (void *arg) @@ -43,6 +44,7 @@ main (int argc, char **argv) int i, j; pthread_attr_init (&attr); + pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN); /* Create a ton of quick-executing threads, then wait for them to complete. */ |