aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2004-07-20 22:09:53 +0000
committerJim Blandy <jimb@codesourcery.com>2004-07-20 22:09:53 +0000
commit412b306056ad201354be62ca2c9330a85c09aaad (patch)
treefa0e3177374a1e5d89054db39fa61a5af7ce3e13 /gdb
parent13ac140c319f79234d97a45a85901d5c3a8df18a (diff)
downloadgdb-412b306056ad201354be62ca2c9330a85c09aaad.zip
gdb-412b306056ad201354be62ca2c9330a85c09aaad.tar.gz
gdb-412b306056ad201354be62ca2c9330a85c09aaad.tar.bz2
* rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
bfd_mach_ppc has no segment registers.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/rs6000-tdep.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 927d342..9cc73e1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 3630e06..6ce4aeb 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -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;