This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Powerpc skip prologue
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Aleksandar Ristovski <aristovski at qnx dot com>, gdb-patches at sources dot redhat dot com, Jerome Guitton <guitton at adacore dot com>
- Date: Sun, 10 Aug 2008 06:44:55 +0400
- Subject: Re: Powerpc skip prologue
- References: <g6lbth$cmp$1@ger.gmane.org> <20080809141651.GB4936@adacore.com> <20080809161131.GA9444@caradoc.them.org>
> 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