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

Daniel Jacobowitz drow@false.org
Wed Dec 8 16:51:00 GMT 2004


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



More information about the Gdb-patches mailing list