Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] rs6000-tdep.c: Fix regnum for R0 is 0 assumption
@ 2003-04-09 22:48 Kevin Buettner
  0 siblings, 0 replies; only message in thread
From: Kevin Buettner @ 2003-04-09 22:48 UTC (permalink / raw)
  To: gdb-patches

I've just committed the patch below.

	* rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
	register number for R0 is 0.

Index: rs6000-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v
retrieving revision 1.125
diff -u -p -r1.125 rs6000-tdep.c
--- rs6000-tdep.c	9 Apr 2003 15:08:26 -0000	1.125
+++ rs6000-tdep.c	9 Apr 2003 22:41:00 -0000
@@ -1646,7 +1646,7 @@ frame_get_saved_regs (struct frame_info 
       CORE_ADDR gpr_addr = frame_addr + fdatap->gpr_offset;
       for (i = fdatap->saved_gpr; i < 32; i++)
 	{
-	  get_frame_saved_regs (fi)[i] = gpr_addr;
+	  get_frame_saved_regs (fi)[tdep->ppc_gp0_regnum + i] = gpr_addr;
 	  gpr_addr += wordsize;
 	}
     }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-09 22:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-09 22:48 [PATCH] rs6000-tdep.c: Fix regnum for R0 is 0 assumption Kevin Buettner

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