LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   GDB unable to debug pthreads (https://www.linuxquestions.org/questions/programming-9/gdb-unable-to-debug-pthreads-298104/)

linuxdeveloper 03-05-2005 05:56 PM

GDB unable to debug pthreads
 
I am using White Dwarf Linux which is a Slackware derivative. The kernel version is 2.4.24 and uses gcc 3.2.3
I downloaded gdb6.3 and 6.2 and built for my WDLinux platform. But then I found out that when I try debugging a multi-threaded program(based on pthreads), I cant list the threads or break in any of the threads other than the main one.
Eg., info threads displays nothing. Running command thread simply displays "Current thread is 0 [LWP xxxx]".
I dont see the customary display when each thread is spawned.
Eg., "New thread XX[LWP yyyy]"

Does anyone know how to get this working? Do I need to enable any setting within gdb to debug threads? Is there something that I need to configure while building gdb itself? I didnt have any trouble building GDB.

Thanx in advance

XavierP 03-06-2005 05:18 AM

Moved to Programming as I think you'll get some useful answers out of our programming people.

And welcome to LQ :D


All times are GMT -5. The time now is 12:26 PM.