summaryrefslogtreecommitdiff
path: root/gdb/alphafbsd-tdep.c
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-04-21 19:47:19 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-04-21 19:47:19 +0000
commit1e18964fd75e77cc2e1b51cf36b507512278aa04 (patch)
treef9afa43fa4459543e3d96bd96fa352ce6bc774cc /gdb/alphafbsd-tdep.c
parent88b4d18007c31e1bffca10dec46df51d84cc0ad7 (diff)
downloadgdb-1e18964fd75e77cc2e1b51cf36b507512278aa04.tar.gz
* alphafbsd-tdep.c: Update copyright years. Include
alpha-tdep.h. (alphafbsd_use_struct_convention): Make static. (alphafbsd_init_abi): New function. (_initialize_alphafbsd_tdep): New function. * config/alpha/tm-fbsd.h: Update copyright years. (USE_STRUCT_CONVENTION): Remove.
Diffstat (limited to 'gdb/alphafbsd-tdep.c')
-rw-r--r--gdb/alphafbsd-tdep.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/gdb/alphafbsd-tdep.c b/gdb/alphafbsd-tdep.c
index e2d47491067..6a3f7e8fe99 100644
--- a/gdb/alphafbsd-tdep.c
+++ b/gdb/alphafbsd-tdep.c
@@ -1,5 +1,5 @@
/* Target-dependent code for FreeBSD/Alpha.
- Copyright 2001 Free Software Foundation, Inc.
+ Copyright 2001, 2002 Free Software Foundation, Inc.
This file is part of GDB.
@@ -21,7 +21,9 @@
#include "defs.h"
#include "value.h"
-int
+#include "alpha-tdep.h"
+
+static int
alphafbsd_use_struct_convention (int gcc_p, struct type *type)
{
enum type_code code;
@@ -51,3 +53,18 @@ alphafbsd_use_struct_convention (int gcc_p, struct type *type)
return 0;
}
+
+static void
+alphafbsd_init_abi (struct gdbarch_info info,
+ struct gdbarch *gdbarch)
+{
+ struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+
+ set_gdbarch_use_struct_convention (gdbarch, alphafbsd_use_struct_convention);
+}
+
+void
+_initialize_alphafbsd_tdep (void)
+{
+ alpha_gdbarch_register_os_abi (ALPHA_ABI_FREEBSD, alphafbsd_init_abi);
+}