Thread specific data from linux core dump

How do i get pointer to thread's local storage or thread specific data while analyzing core dump for linux ?

i use pthread_setspecific to store some data in the pthread's local stoare.

my multi threaded program on linux crashed, and i want to see what is stored in current running thread's local storage.

If i get pointer to thread's local storage i can use key to get the data that is stored.

Is there a command in gdb to get the pointer to thread's local storage?

Do you see:

[Thread debugging using libthread_db enabled]

when you start debugging?

What does

thread apply all bt 

or

info threads

show when you are in gdb?

And. Which Linux?

I dont see :
[Thread debugging using libthread_db enabled]

Stack is corrupted, So
thread apply all bt
will provide some junk values.

info threads

will sometimes provide the list of threads.