aboutsummaryrefslogtreecommitdiff
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
commit82a4efa15c51958ff400c4204fe54472403d1f42 (patch)
treeb45212612c87a8579c287aa0a16458424839f577 /gdb/alphafbsd-tdep.c
parent44dffaac91fc144998a2048f66d0a980f297c886 (diff)
downloadgdb-82a4efa15c51958ff400c4204fe54472403d1f42.zip
gdb-82a4efa15c51958ff400c4204fe54472403d1f42.tar.gz
gdb-82a4efa15c51958ff400c4204fe54472403d1f42.tar.bz2
* 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 e2d4749..6a3f7e8 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);
+}