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/specific.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/specific.c')
-rw-r--r-- | libpthread/linuxthreads/specific.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/specific.c b/libpthread/linuxthreads/specific.c index cf54f7fa1..120bb13df 100644 --- a/libpthread/linuxthreads/specific.c +++ b/libpthread/linuxthreads/specific.c @@ -27,6 +27,9 @@ static struct pthread_key_struct pthread_keys[PTHREAD_KEYS_MAX] = { { 0, NULL } }; +/* Put the maximum number of keys in a variable to make gdb happy. */ +const int __linuxthreads_pthread_keys_max = PTHREAD_KEYS_MAX; + /* Mutex to protect access to pthread_keys */ static pthread_mutex_t pthread_keys_mutex = PTHREAD_MUTEX_INITIALIZER; |