This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch][rfc] Allow GDB to search for the right libthread_db.so.1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]