Add OpenBSD/sh support.
authorMark Kettenis <kettenis@gnu.org>
Fri, 15 Dec 2006 23:45:04 +0000 (23:45 +0000)
committerMark Kettenis <kettenis@gnu.org>
Fri, 15 Dec 2006 23:45:04 +0000 (23:45 +0000)
* NEWS (New targets): Mention OpenBSD/sh.
* configure.tgt: Add sh*-*-openbsd*.
* shnbsd-tdep.c (_initialize_shnbsd_tdep): Register handler for
GDB_OSABI_OPENBSD_ELF.
* config/sh/obsd.mt: New file.

gdb/ChangeLog
gdb/NEWS
gdb/config/sh/obsd.mt [new file with mode: 0644]
gdb/configure.tgt
gdb/shnbsd-tdep.c

index f2443b98764a5fb091caec7e02ec0247701784ce..876185a3e320e91a8a83adae04c8fb929314fc28 100644 (file)
@@ -1,5 +1,12 @@
 2006-12-16  Mark Kettenis  <kettenis@gnu.org>
 
+       Add OpenBSD/sh support.
+       * NEWS (New targets): Mention OpenBSD/sh.
+       * configure.tgt: Add sh*-*-openbsd*.
+       * shnbsd-tdep.c (_initialize_shnbsd_tdep): Register handler for
+       GDB_OSABI_OPENBSD_ELF.
+       * config/sh/obsd.mt: New file.
+
        * ppcnbsd-tdep.c: Fix typo in comment.
 
 2006-12-15  Mark Kettenis  <kettenis@gnu.org>
index 3072b56f4c0b49cb25b89143dad4d53f8e247348..b39c89ce2961a8354e84380722a80ead15326ac5 100644 (file)
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -30,6 +30,7 @@ show breakpoint auto-hw
 
 * New targets
 
+OpenBSD/sh                     sh*-*-openbsd*
 MIPS64 GNU/Linux (gdbserver)   mips64-linux-gnu
 
 * New remote packets
diff --git a/gdb/config/sh/obsd.mt b/gdb/config/sh/obsd.mt
new file mode 100644 (file)
index 0000000..4909f86
--- /dev/null
@@ -0,0 +1,3 @@
+# Target: OpenBSD/sh
+TDEPFILES= sh-tdep.o sh64-tdep.o shnbsd-tdep.o nbsd-tdep.o \
+       corelow.o solib.o solib-svr4.o
index dd2e719e4c3fbe71d8b2dbb2d5610d78121f37c0..a9e657f44c318e1540e937aa503d1d25c77312a8 100644 (file)
@@ -189,6 +189,7 @@ sh-*-linux*)                gdb_target=linux
 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
                        gdb_target=nbsd ;;
 sh-*-nto*)             gdb_target=nto ;;
+sh*-*-openbsd*)                gdb_target=obsd ;;
 sh64-*-elf*)           gdb_target=sh64 ;;
 sh*)                   gdb_target=embed ;;
 
index 84b27bda05bb1c0c04b1138cd3391ae2695f1c67..8e98048fe68af8ff8183085ef57807bf928a37b4 100644 (file)
@@ -1,5 +1,7 @@
-/* Target-dependent code for SuperH running NetBSD, for GDB.
-   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+/* Target-dependent code for NetBSD/sh.
+
+   Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc.
+
    Contributed by Wasabi Systems, Inc.
 
    This file is part of GDB.
@@ -184,4 +186,6 @@ _initialize_shnbsd_tdep (void)
 
   gdbarch_register_osabi (bfd_arch_sh, 0, GDB_OSABI_NETBSD_ELF,
                          shnbsd_init_abi);
+  gdbarch_register_osabi (bfd_arch_sh, 0, GDB_OSABI_OPENBSD_ELF,
+                         shnbsd_init_abi);
 }