This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[rfa:ppc+5.3] Fix "vrsave" regnum
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 01 Oct 2002 01:30:00 -0400
- Subject: [rfa:ppc+5.3] Fix "vrsave" regnum
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
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;