This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch][rfc] Allow GDB to search for the right libthread_db.so.1
- From: Daniel Jacobowitz <drow at false dot org>
- To: Paul Pluzhnikov <ppluzhnikov at google dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, brobecker at adacore dot com, teawater at gmail dot com, tromey at redhat dot com, bauerman at br dot ibm dot com, gdb-patches at sourceware dot org
- Date: Fri, 1 May 2009 12:49:05 -0400
- Subject: Re: [patch][rfc] Allow GDB to search for the right libthread_db.so.1
- References: <daef60380904222321h33fe2fe1n7dd0f6e94e804d8c@mail.gmail.com> <8ac60eac0904230001w1afd9179wcb76e1cfd7f3f386@mail.gmail.com> <daef60380904230105u20843291pe8ee9f98e5ed1d76@mail.gmail.com> <daef60380904230432l7f49d44dw17437e208b35cb9f@mail.gmail.com> <8ac60eac0904291330m78b43c47p1cc9b8379e31e923@mail.gmail.com> <20090430185551.GB10734@adacore.com> <8ac60eac0904301211x245c8b7cp546042d832eb1fe@mail.gmail.com> <8ac60eac0904301618j61051e9du38b34afbc7ed64a3@mail.gmail.com> <83eiv9e1bb.fsf@gnu.org> <8ac60eac0905010849m7dc29bb5h171a703fa79d8b76@mail.gmail.com>
On Fri, May 01, 2009 at 08:49:07AM -0700, Paul Pluzhnikov wrote:
> On Fri, May 1, 2009 at 12:20 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>
> > Is thread debugging indeed completely impossible without libthread_db?
>
> Pretty much: GDB will not know about any threads other than the one
> that is stopped or crashed; with LinuxThreads GDB will stop with SIG32
> all the time in unexpected places, etc. etc.
>
> Debugging experience for anyone but libpthread implementer will be
> quite miserable.
Have you tried this? I know it'll work better than that in gdbserver,
at least if you run the application rather than attaching. We
recognize thread creation events from the kernel. I don't remember
what happens in GDB, though.
--
Daniel Jacobowitz
CodeSourcery