This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: breaks at thread create and delete fail on PPC64/Linux
- From: Daniel Jacobowitz <drow at false dot org>
- To: PAUL GILLIAM <pgilliam at us dot ibm dot com>
- Cc: gdb at sources dot redhat dot com, sjmunroe at us dot ibm dot com
- Date: Mon, 28 Aug 2006 19:22:06 -0400
- Subject: Re: breaks at thread create and delete fail on PPC64/Linux
- References: <1156806903.5898.29.camel@dufur.beaverton.ibm.com>
On Mon, Aug 28, 2006 at 04:15:03PM -0700, PAUL GILLIAM wrote:
> 3) 'dereferencing' the function descriptor should give the
> actual address at which to set a breakpoint, but gives instead
> the offset within the "pthread" library where the breakpoint
> should be placed.
>
> The attached patch 'fixes' the problem by looking up the load address of the
> "pthread" library and adding that to the address from the PLT. This seems to
> do the trick, but THIS HAS ONLY BEEN TESTED WITH A 64-BIT GDB AND A 64-BIT
> TARGET. And it's a real HACK!!!
>
> But it does illustrate the problem.
>
> So, should I try to change GDB so that enable_thread_event() gets called after
> the dynamic loader has has a chance to relocate the .opd?
Here's my question: why isn't that happening already? Don't we get
shared library events after relocation processing? Or do we get one
before and one after?
--
Daniel Jacobowitz
CodeSourcery