title: Thread specific data from linux core dump
body: <p>How do I get pointer to thread's local storage or <strong>thread specific data</strong> while analyzing core dump for <strong>Linux</strong> ?</p>
  <p>I use <code>pthread_setspecific</code> to store some data in the <code>pthread</code>'s local storage.</p>
  <p>my multi threaded program on Linux crashed, and I want to see what is stored in current running thread's local storage.</p>
  <p>If I get pointer to thread's local storage I can use key to get the data that is stored.</p>
  <p>Is there a command in <strong>gdb</strong> to get the <em><strong>pointer to thread's local storage</strong></em>?</p>