From: Joel Brobecker Date: Tue, 13 Mar 2012 16:15:35 +0000 (+0000) Subject: [ppc/prologue] Support the "oril r29, r1, 0x0" insn. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76219d77db475ff305c095b6aea0fe39af223921;p=binutils-gdb.git [ppc/prologue] Support the "oril r29, r1, 0x0" insn. gdb/ 2012-03-13 Chris January * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0 instruction. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8e466c89412..32b4480823f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-03-13 Chris January + + * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0 + instruction. + 2012-03-13 Jan Kratochvil * common/linux-procfs.c (linux_proc_get_int): New, from diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index a8ff777123c..2b1a0a5822e 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -1822,6 +1822,15 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc, /* Set up frame pointer */ } + else if (op == 0x603d0000) /* oril r29, r1, 0x0 */ + { + fdata->frameless = 0; + framep = 1; + fdata->alloca_reg = (tdep->ppc_gp0_regnum + 29); + continue; + + /* Another way to set up the frame pointer. */ + } else if (op == 0x603f0000 /* oril r31, r1, 0x0 */ || op == 0x7c3f0b78) { /* mr r31, r1 */