LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   [GDB] Thread local data structure from linux core dump (https://www.linuxquestions.org/questions/linux-software-2/%5Bgdb%5D-thread-local-data-structure-from-linux-core-dump-949068/)

vishwasungal 06-07-2012 02:07 PM

[GDB] Thread local data structure from linux core dump
 
How do i get pointer to thread's local storage or thread local data structure while analyzing core dump for Linux ?

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

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?

acid_kewpie 06-07-2012 02:17 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 08:18 AM.