* alphafbsd-tdep.c: Update copyright years. Include
authorJason Thorpe <thorpej@netbsd.org>
Sun, 21 Apr 2002 19:47:19 +0000 (19:47 +0000)
committerJason Thorpe <thorpej@netbsd.org>
Sun, 21 Apr 2002 19:47:19 +0000 (19:47 +0000)
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.

gdb/ChangeLog
gdb/alphafbsd-tdep.c
gdb/config/alpha/tm-fbsd.h

index 055a8288fe5527750bdec851c1340af30176db1e..76bb45ce78fd0a0792334b2f402c64fe83cb622c 100644 (file)
@@ -1,3 +1,13 @@
+2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * 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.
+
 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
 
        * alpha-tdep.c (alpha_abi_handler): New structure to describe
index e2d474910675682c603d5818da89c4e5fdbc1b85..6a3f7e8fe99c2d487337fb088201431766d3a7ec 100644 (file)
@@ -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);
+}
index 00d3c27dc0b8d616b92a489a9c382923f7965f3d..55b3877018e29fcdbd40c2c2c1614b5770d7bebd 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-dependent definitions for FreeBSD/Alpha.
-   Copyright 2000, 2001 Free Software Foundation, Inc.
+   Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 
 #include "alpha/tm-alpha.h"
 
-/* FreeBSD uses the old gcc convention for struct returns.  */
-
-#undef USE_STRUCT_CONVENTION
-#define USE_STRUCT_CONVENTION(gcc_p, type) \
-  alphafbsd_use_struct_convention (gcc_p, type)
-
 /* FreeBSD doesn't mark the outermost frame.  While some FreeBSD/Alpha
    releases include (a minimal amount of) debugging info in its
    startup code (crt1.o), the safest thing is to consider the user