From 40f75646e17ad33162d267d29c837b01ad389a47 Mon Sep 17 00:00:00 2001 From: dfr Date: Sun, 28 Nov 1999 19:47:43 +0000 Subject: * Fix the stack allocation code so that it works for alpha. Change it to use mmap(..., MAP_STACK, ...) on alpha too since that should work now. * Add hooks to allow GDB to access the internals of pthreads without having to know the exact layout of struct pthread. Reviewed by: deischen --- lib/libpthread/thread/thr_private.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libpthread/thread/thr_private.h') diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index 0f27063..8bf8113 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -336,7 +336,8 @@ struct pthread_attr { */ #define PTHREAD_STACK_DEFAULT 65536 /* Size of red zone at the end of each stack. */ -#define PTHREAD_STACK_GUARD 4096 +#define PTHREAD_STACK_GUARD PAGE_SIZE + /* * Maximum size of initial thread's stack. This perhaps deserves to be larger * than the stacks of other threads, since many applications are likely to run @@ -466,6 +467,7 @@ struct pthread { #define PTHREAD_MAGIC ((u_int32_t) 0xd09ba115) u_int32_t magic; char *name; + u_int64_t uniqueid; /* for gdb */ /* * Lock for accesses to this thread structure. -- cgit v1.1