gdb doesnt show nptl threads

Doug Evans dje@google.com
Wed Jun 11 14:58:00 GMT 2008


On Wed, Jun 11, 2008 at 12:19 AM, Srinivas Murthy <codevana@gmail.com> wrote:
> Hi,
> I have the following setup:
>  gdb6.6 built using a 64b glibc w/ nptl enabled
>  64b glibc - 2.3.6 (nptl enabled)
>
> When I use gdb on a sample multi-threaded (nptl) app, I cant get any
> thread specific gdb cmds to work.
>
> For ex. info threads shows only one thread (the main thread).
>
> Any idea what might be going wrong?

Unlikely, but one thing that could explain this is the glibc you're
using is a hand-made one installed in some place other than /lib64.
gdb will only look for libthread_db in a few specific places.

A copy of the session log from the start up until the error could help
diagnosis.



More information about the Gdb mailing list