aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2006-12-15 23:45:04 +0000
committerMark Kettenis <kettenis@gnu.org>2006-12-15 23:45:04 +0000
commit54fe91723647abc320c9060fa403dc7d0d4f9d63 (patch)
tree64b85440da5be16b20891447ba1ab656a7d53150 /gdb
parent1e17aef8089ed44431967563b44bd5c999dc2c0e (diff)
downloadgdb-54fe91723647abc320c9060fa403dc7d0d4f9d63.zip
gdb-54fe91723647abc320c9060fa403dc7d0d4f9d63.tar.gz
gdb-54fe91723647abc320c9060fa403dc7d0d4f9d63.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/NEWS1
-rw-r--r--gdb/config/sh/obsd.mt3
-rw-r--r--gdb/configure.tgt1
-rw-r--r--gdb/shnbsd-tdep.c8
5 files changed, 18 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f2443b9..876185a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
diff --git a/gdb/NEWS b/gdb/NEWS
index 3072b56..b39c89c 100644
--- 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
index 0000000..4909f86
--- /dev/null
+++ b/gdb/config/sh/obsd.mt
@@ -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
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index dd2e719..a9e657f 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -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 ;;
diff --git a/gdb/shnbsd-tdep.c b/gdb/shnbsd-tdep.c
index 84b27bd..8e98048 100644
--- a/gdb/shnbsd-tdep.c
+++ b/gdb/shnbsd-tdep.c
@@ -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);
}