Re: [RFC] pb unwinding from pthread_cond_wait on ppc-linux (RFA?)

Daniel Jacobowitz
2004-12-08T16:34:53Z

On Wed, Dec 08, 2004 at 05:32:11PM +0100, Joel Brobecker wrote:
> Gah? Do I understand correctly that the code jumps to 0xffed01c
> only to return back?

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.

Take a look at i386-tdep.c. It handles calls to a return sequence
specially in the prologue analyzer. That may be a better choice than
blindly allowing calls.

(Does this obsolete the "branch in first three insns" check? I'm not
sure if there are other possible reasons for that.)

--
Daniel Jacobowitz