diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-01-23 07:55:00 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-01-23 07:55:00 +0000 |
commit | 8286f90e97e48c0b3b02097be1ac54f30216dfaa (patch) | |
tree | 2baa642dbba488b6b0c7413ddecb436c796fe56a /libpthread/linuxthreads/manager.c | |
parent | 513ba9a3978700c3e04bdc027bf7b747673ddbf0 (diff) |
Per patch from Nathan Field at ghs.com, add a couple of variables
needed to make gdb happy when debugging threadded apps.
Diffstat (limited to 'libpthread/linuxthreads/manager.c')
-rw-r--r-- | libpthread/linuxthreads/manager.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/manager.c b/libpthread/linuxthreads/manager.c index 1b513ca92..ba4849d37 100644 --- a/libpthread/linuxthreads/manager.c +++ b/libpthread/linuxthreads/manager.c @@ -56,6 +56,10 @@ struct pthread_handle_struct __pthread_handles[PTHREAD_THREADS_MAX] = /* For debugging purposes put the maximum number of threads in a variable. */ const int __linuxthreads_pthread_threads_max = PTHREAD_THREADS_MAX; +/* Put the size of the pthread_descr in a variable to make gdb happy. */ +const int __linuxthreads_pthread_sizeof_descr + = sizeof(struct _pthread_descr_struct); + /* Indicate whether at least one thread has a user-defined stack (if 1), or if all threads have stacks supplied by LinuxThreads (if 0). */ int __pthread_nonstandard_stacks; |