breaks at thread create and delete fail on PPC64/Linux
PAUL GILLIAM
pgilliam@us.ibm.com
Mon Aug 28 23:31:00 GMT 2006
On Mon, 2006-08-28 at 19:22 -0400, Daniel Jacobowitz wrote:
> 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?
I don't think this is a "normal" shared library event at all: it's a
thread thing.
I need to do some more research to say for sure.
-=# Paul #=-
More information about the Gdb
mailing list