GDB and Thread Problems

Daniel Jacobowitz drow@mvista.com
Fri Jun 28 06:25:00 GMT 2002


On Fri, Jun 28, 2002 at 06:40:08PM +0530, dyadav@hss.hns.com wrote:
> 
> 
> 
> Hi
>      I am using GDB 5.2, on i386-unknown-freebsd4.2 .
> 
>       I am trying to debug a thread program ( Use PThread Library).
> but i did not any output in info thread. What is the problem.
> 
> (gdb) info threads
> (gdb) thread
> [Current thread is 0 (process 20038)]
> (gdb) thread 1
> Thread ID 1 not known.
> (gdb)
> 
> Is it due to as i do not have the libthread_db.so.1 library.
>        #define LIBTHREAD_DB_SO "libthread_db.so.1"

Probably.  GDB will not debug threads without this (and an unstripped
libpthread.so).

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb mailing list