Index: thread/thr_private.h =================================================================== --- thread/thr_private.h +++ thread/thr_private.h @@ -719,6 +719,8 @@ extern int _libthr_debug; extern int _thread_event_mask; extern struct pthread *_thread_last_event; +/* Used in symbol lookup of libthread_db */ +extern struct pthread_key _thread_keytable[]; /* List of all threads: */ extern pthreadlist _thread_list; Index: thread/thr_spec.c =================================================================== --- thread/thr_spec.c +++ thread/thr_spec.c @@ -42,7 +42,7 @@ #include "thr_private.h" -static struct pthread_key _thread_keytable[PTHREAD_KEYS_MAX]; +struct pthread_key _thread_keytable[PTHREAD_KEYS_MAX]; __weak_reference(_pthread_key_create, pthread_key_create); __weak_reference(_pthread_key_delete, pthread_key_delete);