This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]