Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] AIX: Add another way of setting up the frame pointer to skip_prologue
@ 2012-03-08 14:40 Chris January
  2012-03-09 19:48 ` Joel Brobecker
  0 siblings, 1 reply; 6+ messages in thread
From: Chris January @ 2012-03-08 14:40 UTC (permalink / raw)
  To: gdb-patches

Add support for compilers that use the oril r29, r1, 0x0 instruction to
set up the frame pointer.

2012-03-08  Chris January  <chris.january@allinea.com>

        * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
	instruction.
---
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index a8ff777..9d4fd40 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 */



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-13 16:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-08 14:40 [PATCH] AIX: Add another way of setting up the frame pointer to skip_prologue Chris January
2012-03-09 19:48 ` Joel Brobecker
2012-03-12 13:14   ` Chris January
2012-03-12 13:43     ` Mark Kettenis
2012-03-13 15:18       ` Chris January
2012-03-13 16:50         ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox