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
|