gdb.threads/multi-create: Double the existing stack size.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 7 Mar 2023 00:55:22 +0000 (16:55 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 7 Mar 2023 00:55:22 +0000 (16:55 -0800)
commit3c75f00adcea9d57c0d92669249dd884e49c4c3b
tree6d199f31f5256f3d2ff85b741281d43bb51da9e4
parent3625712636b1411d2b980217e7dd1ca8a4c8c502
gdb.threads/multi-create: Double the existing stack size.

Setting the stack size to 2*PTHREAD_STACK_MIN actually lowered the
stack on FreeBSD rather than raising it causing non-main threads in
the test program to overflow their stack and crash.  Double the
existing stack size rather than assuming that the initial stack size
is PTHREAD_STACK_MIN.
gdb/testsuite/gdb.threads/multi-create.c