diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2002-04-21 19:47:19 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2002-04-21 19:47:19 +0000 |
commit | 82a4efa15c51958ff400c4204fe54472403d1f42 (patch) | |
tree | b45212612c87a8579c287aa0a16458424839f577 /gdb/alphafbsd-tdep.c | |
parent | 44dffaac91fc144998a2048f66d0a980f297c886 (diff) | |
download | gdb-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.c | 21 |
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); +} |