aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads/manythreads.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.threads/manythreads.c')
-rw-r--r--gdb/testsuite/gdb.threads/manythreads.c2
1 files changed, 2 insertions, 0 deletions
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. */