This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB and Thread Problems
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: dyadav at hss dot hns dot com
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 28 Jun 2002 09:25:20 -0400
- Subject: Re: GDB and Thread Problems
- References: <65256BE6.00485728.00@sandesh.hss.hns.com>
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