diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2004-11-21 01:51:16 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2004-11-21 01:51:16 +0000 |
commit | fefa18880beb0d6e2de40563fb6827ec019ee18b (patch) | |
tree | 7ba24ed2678954b7937d96761253d9598405c17e /gdb/m68klinux-tdep.c | |
parent | 27a987e351b076f0b154329c5bf02c3b4b6994ee (diff) | |
download | gdb-fefa18880beb0d6e2de40563fb6827ec019ee18b.zip gdb-fefa18880beb0d6e2de40563fb6827ec019ee18b.tar.gz gdb-fefa18880beb0d6e2de40563fb6827ec019ee18b.tar.bz2 |
* m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
(m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
to glibc_skip_solib_resolver.
* config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
solib-legacy.o.
* Makefile.in (m68klinux-tdep.o): Update dependencies.
Diffstat (limited to 'gdb/m68klinux-tdep.c')
-rw-r--r-- | gdb/m68klinux-tdep.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/m68klinux-tdep.c b/gdb/m68klinux-tdep.c index 8221a92..bdff113 100644 --- a/gdb/m68klinux-tdep.c +++ b/gdb/m68klinux-tdep.c @@ -35,6 +35,8 @@ #include "m68k-tdep.h" #include "trad-frame.h" #include "frame-unwind.h" +#include "glibc-tdep.h" +#include "solib-svr4.h" /* Offsets (in target ints) into jmp_buf. */ @@ -295,6 +297,14 @@ m68k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) frame_unwind_append_sniffer (gdbarch, m68k_linux_sigtramp_frame_sniffer); /* Shared library handling. */ + + /* GNU/Linux uses SVR4-style shared libraries. */ + set_solib_svr4_fetch_link_map_offsets (gdbarch, + svr4_ilp32_fetch_link_map_offsets); + + /* GNU/Linux uses the dynamic linker included in the GNU C Library. */ + set_gdbarch_skip_solib_resolver (gdbarch, glibc_skip_solib_resolver); + set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target); } |