This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] [PowerPC] Detect when LR is saved through frame pointer
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: pedromfc at linux dot vnet dot ibm dot com (Pedro Franco de Carvalho)
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 15 Mar 2018 21:42:19 +0100 (CET)
- Subject: Re: [PATCH] [PowerPC] Detect when LR is saved through frame pointer
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