c - pthread_t to gdb thread id -


Does anyone know how to display threads GDB information pthread_t?

I:

  (gdb) info threads 37 Thread 22887 0xb7704422 __kernel_vsyscall (36) Thread 22926 0xb7704422 __kernel_vsyscall (35) Thread 22925 0xb7704422 __kernel_vsyscall (in) 34 Thread 22924 0xb7704422 __kernel_vsyscall () 33 Thread 22922 __kernel_vsyscall (in 0xb7704422) 32 Thread 22 921 (__kernel_vsyscall in 0xb7704422) (gdb) p m_messageQueue- & gt; M_creationThread $ 3 = 2694822768 (gdb) p / x m_messageQueue- & gt; m_creationThread $ 4 = 0xa09fbb70  

What am does anyone know know how I know who this little thread? It will be 22768, but none of my threads is short.

pthread_t value is not that thread ID based on the thread system (Linux gettid (2) ) which you see in GDB.

AFAIK, there is no function to convert between two. You need to keep track of yourself.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -