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: RFC: Initialize libthread_db at the right time


On Mon, Feb 27, 2006 at 02:44:14PM -0500, Daniel Jacobowitz wrote:
> We've had some recurring problems debugging statically linked executables
> using libthread_db; this patch is the first of several fixes for that.
> This doesn't do much; it just splits the check out from the new_objfile
> hook, and calls it from target_post_attach and target_post_startup_inferior
> in the Linux native target.
> 
> Earlier versions of this patch used an observer instead, which was silly
> of me; we only want to do this when we're sitting on top of the Linux
> native target, not when we're on top of e.g. the remote target.  This
> mostly fixes the not-enabling-libthread_db-when-we-should-be class of
> problems; there's still one gross hack in remote.c which avoids
> calling the new objfile hook for remote targets, but that's a mess
> for another day.
> 
> Any comments?  Otherwise, I'll commit this in a few days.  It handles
> LinuxThreads, but NPTL needs a little push (coming up next).

OK, more than a few days.  And the NPTL push never got pushed, because
the glibc maintainers didn't like my solution, but have not suggested
an alternative yet.  I'll poke them again.

This part committed.

-- 
Daniel Jacobowitz
CodeSourcery


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