diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2002-09-02 18:09:07 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2002-09-02 18:09:07 +0000 |
commit | 7d400e776320a9bf9575c4713dc429e7c8bc4364 (patch) | |
tree | 7ac069c13cd5fae146c71f53dc37ecced5363fe1 /gdb/i386nbsd-tdep.c | |
parent | 704a27c4616b5d38e28bf4659a16c421bb8b4b2c (diff) | |
download | gdb-7d400e776320a9bf9575c4713dc429e7c8bc4364.zip gdb-7d400e776320a9bf9575c4713dc429e7c8bc4364.tar.gz gdb-7d400e776320a9bf9575c4713dc429e7c8bc4364.tar.bz2 |
* Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
dependency list.
* i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
solib_svr4_fetch_link_map_offsets to
nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
* config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
* config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
* config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
solib-svr4.o, and solib-legacy.o.
* config/i386/tm-nbsd.h: Include solib.h.
Diffstat (limited to 'gdb/i386nbsd-tdep.c')
-rw-r--r-- | gdb/i386nbsd-tdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/i386nbsd-tdep.c b/gdb/i386nbsd-tdep.c index dccd5cd..8d32a03 100644 --- a/gdb/i386nbsd-tdep.c +++ b/gdb/i386nbsd-tdep.c @@ -29,6 +29,8 @@ #include "i387-tdep.h" #include "nbsd-tdep.h" +#include "solib-svr4.h" + /* Map a GDB register number to an offset in the reg structure. */ static int regmap[] = { @@ -275,6 +277,8 @@ i386nbsdelf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) /* NetBSD ELF uses SVR4-style shared libraries. */ set_gdbarch_in_solib_call_trampoline (gdbarch, generic_in_solib_call_trampoline); + set_solib_svr4_fetch_link_map_offsets (gdbarch, + nbsd_ilp32_solib_svr4_fetch_link_map_offsets); /* NetBSD ELF uses -fpcc-struct-return by default. */ tdep->struct_return = pcc_struct_return; |