+2004-11-21 Andreas Schwab <schwab@suse.de>
+
+ * 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.
+
2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* infttrace.h (ttrace_write_reg_64): Add prototype.
m68klinux-tdep.o: m68klinux-tdep.c $(defs_h) $(gdbcore_h) $(doublest_h) \
$(floatformat_h) $(frame_h) $(target_h) $(gdb_string_h) \
$(gdbtypes_h) $(osabi_h) $(regcache_h) $(objfiles_h) $(symtab_h) \
- $(m68k_tdep_h) $(trad_frame_h) $(frame_unwind_h)
+ $(m68k_tdep_h) $(trad_frame_h) $(frame_unwind_h) $(solib_svr4_h) \
+ $(glibc_tdep_h)
m68k-stub.o: m68k-stub.c
m68k-tdep.o: m68k-tdep.c $(defs_h) $(dwarf2_frame_h) $(frame_h) \
$(frame_base_h) $(frame_unwind_h) $(floatformat_h) $(symtab_h) \
# Target: Motorola m68k with a.out and ELF
-TDEPFILES= m68k-tdep.o m68klinux-tdep.o solib.o solib-svr4.o solib-legacy.o
+TDEPFILES= m68k-tdep.o m68klinux-tdep.o solib.o solib-svr4.o glibc-tdep.o
DEPRECATED_TM_FILE= solib.h
#include "m68k-tdep.h"
#include "trad-frame.h"
#include "frame-unwind.h"
+#include "glibc-tdep.h"
+#include "solib-svr4.h"
\f
/* Offsets (in target ints) into jmp_buf. */
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);
}