aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-10-29 19:24:52 +0000
committerAndrew Cagney <cagney@redhat.com>2003-10-29 19:24:52 +0000
commit0a0a4ac3c65576a2eb2b38dab365fe950fdfeca1 (patch)
tree7e105fe2ffbdd4e67a4a685c2851cbc33a057ca6 /gdb
parent7b097ae3929cc0a113d185397fff442217b2365b (diff)
downloadgdb-0a0a4ac3c65576a2eb2b38dab365fe950fdfeca1.zip
gdb-0a0a4ac3c65576a2eb2b38dab365fe950fdfeca1.tar.gz
gdb-0a0a4ac3c65576a2eb2b38dab365fe950fdfeca1.tar.bz2
2003-10-29 Andrew Cagney <cagney@redhat.com>
* ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ppc-linux-tdep.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0588d65..048bb9d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-29 Andrew Cagney <cagney@redhat.com>
+
+ * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
+ default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
+
2003-10-29 Mark Kettenis <kettenis@gnu.org>
* objfiles.h (clear_objfile_data): New prototype.
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c
index 6270292..397f616 100644
--- a/gdb/ppc-linux-tdep.c
+++ b/gdb/ppc-linux-tdep.c
@@ -1083,7 +1083,13 @@ ppc_linux_init_abi (struct gdbarch_info info,
void
_initialize_ppc_linux_tdep (void)
{
- gdbarch_register_osabi (bfd_arch_powerpc, 0, GDB_OSABI_LINUX,
- ppc_linux_init_abi);
+ /* Register for all sub-familes of the POWER/PowerPC: 32-bit and
+ 64-bit PowerPC, and the older rs6k. */
+ gdbarch_register_osabi (bfd_arch_powerpc, bfd_mach_ppc, GDB_OSABI_LINUX,
+ ppc_linux_init_abi);
+ gdbarch_register_osabi (bfd_arch_powerpc, bfd_mach_ppc64, GDB_OSABI_LINUX,
+ ppc_linux_init_abi);
+ gdbarch_register_osabi (bfd_arch_rs6000, bfd_mach_rs6k, GDB_OSABI_LINUX,
+ ppc_linux_init_abi);
add_core_fns (&ppc_linux_regset_core_fns);
}