diff options
author | Mark Kettenis <kettenis@gnu.org> | 2006-01-15 19:45:28 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2006-01-15 19:45:28 +0000 |
commit | 4b17b3897bf45ea21ed2de1743c063765e9dcf2f (patch) | |
tree | e801ea4db66125e95696f17b424ee615dba3990d /gdb/alphafbsd-tdep.c | |
parent | bd4109fb5129dbedaa6044edbe3ff552e46aa490 (diff) | |
download | gdb-4b17b3897bf45ea21ed2de1743c063765e9dcf2f.zip gdb-4b17b3897bf45ea21ed2de1743c063765e9dcf2f.tar.gz gdb-4b17b3897bf45ea21ed2de1743c063765e9dcf2f.tar.bz2 |
* alphafbsd-tdep.c: Include "solib-svr4.h".
(alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
svr4_lp64_fetch_link_map_offsets.
* Makefile.in (alphafbsd-tdep.o): Update dependencies.
* config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
solib-svr4.o.
* config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
and solib-legacy.o.
* config/alpha/nm-fbsd.h: Don't include "solib.h".
Diffstat (limited to 'gdb/alphafbsd-tdep.c')
-rw-r--r-- | gdb/alphafbsd-tdep.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gdb/alphafbsd-tdep.c b/gdb/alphafbsd-tdep.c index 14d0c8d..08d3862 100644 --- a/gdb/alphafbsd-tdep.c +++ b/gdb/alphafbsd-tdep.c @@ -1,5 +1,6 @@ -/* Target-dependent code for FreeBSD/Alpha. - Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. +/* Target-dependent code for FreeBSD/alpha. + + Copyright (C) 2001, 2002, 2003, 2006 Free Software Foundation, Inc. This file is part of GDB. @@ -23,6 +24,7 @@ #include "osabi.h" #include "alpha-tdep.h" +#include "solib-svr4.h" static int alphafbsd_use_struct_convention (int gcc_p, struct type *type) @@ -98,7 +100,12 @@ alphafbsd_init_abi (struct gdbarch_info info, /* Hook into the MDEBUG frame unwinder. */ alpha_mdebug_init_abi (info, gdbarch); - set_gdbarch_deprecated_use_struct_convention (gdbarch, alphafbsd_use_struct_convention); + /* FreeBSD/alpha has SVR4-style shared libraries. */ + set_solib_svr4_fetch_link_map_offsets + (gdbarch, svr4_lp64_fetch_link_map_offsets); + + set_gdbarch_deprecated_use_struct_convention + (gdbarch, alphafbsd_use_struct_convention); tdep->dynamic_sigtramp_offset = alphafbsd_sigtramp_offset; tdep->sigcontext_addr = alphafbsd_sigcontext_addr; |