* rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
authorJim Blandy <jimb@codesourcery.com>
Tue, 20 Jul 2004 22:09:53 +0000 (22:09 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 20 Jul 2004 22:09:53 +0000 (22:09 +0000)
bfd_mach_ppc has no segment registers.

gdb/ChangeLog
gdb/rs6000-tdep.c

index 927d3427dea3888fd35f9a30fbe2f38cdad7a839..9cc73e1de8e16cd15b756cd7c0d37b6809f1437e 100644 (file)
@@ -1,5 +1,8 @@
 2004-07-20  Jim Blandy  <jimb@redhat.com>
 
+       * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
+       bfd_mach_ppc has no segment registers.
+
        Include PowerPC SPR numbers for special-purpose registers.
        * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
        (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
index 3630e06b2179b52fb48931cdae79c92816a8fd72..6ce4aeb81f7790c4dfcd6327f9ef9d8e26d87575 100644 (file)
@@ -2935,6 +2935,7 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
     switch (v->mach)
       {
       case bfd_mach_ppc: 
+        tdep->ppc_sr0_regnum = -1;
        tdep->ppc_vr0_regnum = 71;
        tdep->ppc_vrsave_regnum = 104;
        break;