This is the mail archive of the gdb-patches@sourceware.org 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: Powerpc skip prologue


> Could you test an alternative for me?  The patch from my December
> message, but without rs6000_force_frame_sniffer, the
> rs6000_gdbarch_init change, or the new testcase.  I believe that will
> cover the same cases as your patch, plus several others.  This is a
> slightly larger portion of the patch than Aleksandar reposted earlier.

Sure!

> 2008-08-09  Daniel Jacobowitz  <dan@codesourcery.com>
> 
> 	* rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
> 	lr_register.
> 	(rs6000_in_function_epilogue_p): Check for bctr.
> 	(skip_prologue): Initialize lr_register.  Set lr_reg to a register
> 	number.  Set gpr_mask and used_bl.  Continue scanning while some
> 	expected registers are not saved.  Set lr_register if LR is not
> 	stored.
> 	(rs6000_frame_cache): Handle gpr_mask and lr_register.
> 
> 	* gdb.arch/powerpc-prologue.exp: Correct saved registers.

This tested OK on ppc-linux :-).

-- 
Joel


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