Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfa:ppc+5.3] Fix "vrsave" regnum
@ 2002-09-30 22:30 Andrew Cagney
  2002-09-30 23:34 ` Kevin Buettner
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2002-09-30 22:30 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 229 bytes --]

Hello,

The attached fixes the number of the vrsave register (for the 
powerpc:7400 variant).  Without the patch, ``info vector'' gets an 
internal error - 153 >= NUM_REGS+NUM_PSEUDO_REGS==153.

Ok?  HEAD and 5.3 branch?

Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 648 bytes --]

2002-10-01  Andrew Cagney  <ac131313@redhat.com>

	* rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
	"vrsave"'s register number.

Index: rs6000-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v
retrieving revision 1.85
diff -u -r1.85 rs6000-tdep.c
--- rs6000-tdep.c	26 Sep 2002 22:34:07 -0000	1.85
+++ rs6000-tdep.c	1 Oct 2002 05:26:27 -0000
@@ -2793,7 +2793,7 @@
 	break;
       case bfd_mach_ppc_7400:
 	tdep->ppc_vr0_regnum = 119;
-	tdep->ppc_vrsave_regnum = 153;
+	tdep->ppc_vrsave_regnum = 152;
 	tdep->ppc_ev0_regnum = -1;
 	tdep->ppc_ev31_regnum = -1;
 	break;

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

end of thread, other threads:[~2002-10-01 15:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-30 22:30 [rfa:ppc+5.3] Fix "vrsave" regnum Andrew Cagney
2002-09-30 23:34 ` Kevin Buettner
2002-10-01  8:02   ` Andrew Cagney

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