2004-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
authorJeff Johnston <jjohnstn@redhat.com>
Fri, 23 Apr 2004 19:01:17 +0000 (19:01 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Fri, 23 Apr 2004 19:01:17 +0000 (19:01 +0000)
        * gdb.threads/manythreads.c: Reduce thread stack size.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/manythreads.c

index 4d0d2c3108c62e48b675ab3b897e8b0ab739178c..29f35e1ea922687a92071e1bb15653a51e74c464 100644 (file)
@@ -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.
index bc0d9b67a6dd16c9f109db393d8697e905e84466..e39412cde8f97b25a2fefeefce19b74cb989c8c3 100644 (file)
@@ -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.  */