This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Add OpenBSD/alpha support
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 20 Feb 2004 19:47:43 +0100 (CET)
- Subject: [PATCH] Add OpenBSD/alpha support
OpenBSD/alpha is similar enough to NetBSD/alpha for them to share a
common configuration.
Committed,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* NEWS (New native configurations): Mention OpenBSD/alpha.
* configure.tgt: Add alpha*-*-openbsd*.
* configure.host: Add alpha*-*-openbsd*.
* alphanbsd-tdep.c: Update copyright year.
(_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
Index: NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.135
diff -u -p -r1.135 NEWS
--- NEWS 5 Feb 2004 19:56:33 -0000 1.135
+++ NEWS 20 Feb 2004 18:44:39 -0000
@@ -39,6 +39,7 @@ encountered these.
* New native configurations
NetBSD/amd64 x86_64-*-netbsd*
+OpenBSD/alpha alpha*-*-openbsd*
OpenBSD/sparc sparc-*-openbsd*
OpenBSD/sparc64 sparc64-*-openbsd*
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.132
diff -u -p -r1.132 configure.tgt
--- configure.tgt 20 Feb 2004 18:13:18 -0000 1.132
+++ configure.tgt 20 Feb 2004 18:44:39 -0000
@@ -43,6 +43,7 @@ x86_64-*-freebsd*) gdb_target=fbsd64 ;;
alpha*-*-osf*) gdb_target=alpha-osf1 ;;
alpha*-*-linux*) gdb_target=alpha-linux ;;
alpha*-*-netbsd*) gdb_target=nbsd ;;
+alpha*-*-openbsd*) gdb_target=nbsd ;;
alpha*-*-*) gdb_target=alpha ;;
arm*-wince-pe) gdb_target=wince ;;
Index: configure.host
===================================================================
RCS file: /cvs/src/src/gdb/configure.host,v
retrieving revision 1.67
diff -u -p -r1.67 configure.host
--- configure.host 20 Feb 2004 18:13:18 -0000 1.67
+++ configure.host 20 Feb 2004 18:44:39 -0000
@@ -37,6 +37,7 @@ alpha*-*-osf[3456789]*) gdb_host=alpha-o
alpha*-*-linux*) gdb_host=alpha-linux ;;
alpha*-*-freebsd*) gdb_host=fbsd ;;
alpha*-*-netbsd*) gdb_host=nbsd ;;
+alpha*-*-openbsd*) gdb_host=nbsd ;;
arm*-*-linux*) gdb_host=linux ;;
arm*-*-netbsdelf*) gdb_host=nbsdelf ;;
Index: alphanbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/alphanbsd-tdep.c,v
retrieving revision 1.17
diff -u -p -r1.17 alphanbsd-tdep.c
--- alphanbsd-tdep.c 4 Jun 2003 06:22:17 -0000 1.17
+++ alphanbsd-tdep.c 20 Feb 2004 18:44:39 -0000
@@ -1,5 +1,6 @@
/* Target-dependent code for NetBSD/Alpha.
- Copyright 2002, 2003 Free Software Foundation, Inc.
+
+ Copyright 2002, 2003, 2004 Free Software Foundation, Inc.
Contributed by Wasabi Systems, Inc.
This file is part of GDB.
@@ -224,6 +225,8 @@ void
_initialize_alphanbsd_tdep (void)
{
gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_NETBSD_ELF,
+ alphanbsd_init_abi);
+ gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_OPENBSD_ELF,
alphanbsd_init_abi);
add_core_fns (&alphanbsd_core_fns);