This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] pb unwinding from pthread_cond_wait on ppc-linux (RFA?)
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 17 Jun 2005 00:06:35 -0400
- Subject: Re: [RFC] pb unwinding from pthread_cond_wait on ppc-linux (RFA?)
- References: <20041208155633.GX2524@adacore.com> <20041208161420.GA29978@nevyn.them.org> <20041208163211.GY2524@adacore.com> <20041208163442.GA30584@nevyn.them.org> <20041209160017.GE1382@adacore.com> <20050209170211.GD18540@adacore.com>
On Wed, Feb 09, 2005 at 12:02:11PM -0500, Joel Brobecker wrote:
> Ping?
You may want to ping at Andrew and Kevin directly about this.
> On Thu, Dec 09, 2004 at 05:00:17PM +0100, Joel Brobecker wrote:
> > > Precisely! That's what I thought it would be. It's trying to load lr
> > > with the address of @+16, so that the function can access PIC data
> > > using PC-relative displacement.
> >
> > Daniel, you never stop to impress me.
> >
> > > (Does this obsolete the "branch in first three insns" check? I'm not
> > > sure if there are other possible reasons for that.)
> >
> > Here is a new patch that implements your suggestion. Indeed, I could
> > then remove the "branch in first three insns" check...
FYI, rethinking this, this is not such a good idea (removing the check,
I mean). While the check itself is pretty bogus, the comment above
says:
{ /* bl foo,
to save fprs??? */
I know at least Darwin does this.
So maybe the new check should be additional instead of a replacement.
--
Daniel Jacobowitz
CodeSourcery, LLC