aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/ppcobsd-tdep.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 60fd193..10909eb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2005-04-16 Mark Kettenis <kettenis@gnu.org>
+
+ * ppcobsd-tdep.c: Fix typo in comment.
+ (_initialize_ppcobsd_tdep): Register GDB_OSABI_OPENBSD_ELF for
+ bfd_arch_rs6000 too.
+
2005-04-15 Kevin Buettner <kevinb@redhat.com>
* remote.c (remote_get_thread_local_address): Throw a more
diff --git a/gdb/ppcobsd-tdep.c b/gdb/ppcobsd-tdep.c
index 82e23e6..94cea38 100644
--- a/gdb/ppcobsd-tdep.c
+++ b/gdb/ppcobsd-tdep.c
@@ -91,7 +91,7 @@ ppcobsd_collect_gregset (const struct regset *regset,
ppc_collect_fpregset (regset, regcache, regnum, gregs, len);
}
-/* OpenBS/powerpc register set. */
+/* OpenBSD/powerpc register set. */
struct regset ppcobsd_gregset =
{
@@ -164,8 +164,8 @@ static const struct tramp_frame ppcobsd_sigtramp =
},
ppcobsd_sigtramp_cache_init
};
-
+
static void
ppcobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
@@ -204,6 +204,8 @@ _initialize_ppcobsd_tdep (void)
gdbarch_register_osabi_sniffer (bfd_arch_powerpc, bfd_target_unknown_flavour,
ppcobsd_core_osabi_sniffer);
+ gdbarch_register_osabi (bfd_arch_rs6000, 0, GDB_OSABI_OPENBSD_ELF,
+ ppcobsd_init_abi);
gdbarch_register_osabi (bfd_arch_powerpc, 0, GDB_OSABI_OPENBSD_ELF,
ppcobsd_init_abi);