[PATCH] [PowerPC] Detect when LR is saved through frame pointer
Ulrich Weigand
uweigand@de.ibm.com
Thu Mar 15 20:42:00 GMT 2018
Pedro Franco de Carvalho wrote:
> 2018-mm-dd Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
>
> * rs6000-tdep.c (store_insn_p): New function.
> (skip_prologue): New variable alloca_reg_offset. Set lr_reg
> and cr_reg to their unshifted values. Use store_insn_p to
> match LR saves using either R1 or fdata->alloca_reg. Use
> store_insn_p to match CR saves. Set alloca_reg_offset
> when alloca_reg and framep are set. Remove lr_reg shift
> when assigning to fdata->lr_register.
This is OK.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com
More information about the Gdb-patches
mailing list