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?)


> 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...

2004-12-09  Joel Brobecker  <brobecker@gnat.com>

        * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
        (skip_prologue): Stop unconditionaly skipping "bl" instructions
        that are within the first 3 instruction. Instead, Skip that "bl"
        instruction iff the destination instruction is a "blrl".

Tested on powerpc-linux. No regression.

How does it look?

-- 
Joel

Attachment: ppc.diff
Description: Text document


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