diff options
-rw-r--r-- | gdb/ChangeLog | 10 | ||||
-rw-r--r-- | gdb/Makefile.in | 3 | ||||
-rw-r--r-- | gdb/config/m68k/linux.mt | 2 | ||||
-rw-r--r-- | gdb/m68klinux-tdep.c | 10 |
4 files changed, 23 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index da6270823f5..3a5ac4537f7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +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. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index d7183d8378f..7593097c41e 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -2182,7 +2182,8 @@ m68klinux-nat.o: m68klinux-nat.c $(defs_h) $(frame_h) $(inferior_h) \ 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) \ diff --git a/gdb/config/m68k/linux.mt b/gdb/config/m68k/linux.mt index 262f67ba005..c9abbe3259e 100644 --- a/gdb/config/m68k/linux.mt +++ b/gdb/config/m68k/linux.mt @@ -1,3 +1,3 @@ # 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 diff --git a/gdb/m68klinux-tdep.c b/gdb/m68klinux-tdep.c index 8221a926c6d..bdff113fac7 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); } |