This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] OpenBSD/sh support
- From: Mark Kettenis <kettenis at gnu dot org>
- To: gdb-patches at sourceware dot org
- Date: Sat, 16 Dec 2006 00:46:14 +0100 (CET)
- Subject: [commit] OpenBSD/sh support
This adds support for OpenBSD/sh targets.
Committed,
Mark
Index: ChangeLog
from 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.
Index: NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.204
diff -u -p -r1.204 NEWS
--- NEWS 5 Dec 2006 21:23:20 -0000 1.204
+++ NEWS 15 Dec 2006 23:39:09 -0000
@@ -30,6 +30,7 @@ show breakpoint auto-hw
* New targets
+OpenBSD/sh sh*-*-openbsd*
MIPS64 GNU/Linux (gdbserver) mips64-linux-gnu
* New remote packets
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.180
diff -u -p -r1.180 configure.tgt
--- configure.tgt 22 Nov 2006 17:34:15 -0000 1.180
+++ configure.tgt 15 Dec 2006 23:39:09 -0000
@@ -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: shnbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/shnbsd-tdep.c,v
retrieving revision 1.16
diff -u -p -r1.16 shnbsd-tdep.c
--- shnbsd-tdep.c 17 Dec 2005 22:34:02 -0000 1.16
+++ shnbsd-tdep.c 15 Dec 2006 23:39:09 -0000
@@ -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);
}
Index: config/sh/obsd.mt
===================================================================
RCS file: config/sh/obsd.mt
diff -N config/sh/obsd.mt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ config/sh/obsd.mt 15 Dec 2006 23:39:09 -0000
@@ -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