This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Update shared library support on m68k-linux


I've committed some updates for the shared library support on m68k-linux.

Andreas.

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.

Index: gdb/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.670
diff -u -a -p -r1.670 Makefile.in
--- gdb/Makefile.in	20 Nov 2004 10:20:33 -0000	1.670
+++ gdb/Makefile.in	21 Nov 2004 01:45:30 -0000
@@ -2180,7 +2180,8 @@ m68klinux-nat.o: m68klinux-nat.c $(defs_
 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) \
Index: gdb/m68klinux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/m68klinux-tdep.c,v
retrieving revision 1.14
diff -u -a -p -r1.14 m68klinux-tdep.c
--- gdb/m68klinux-tdep.c	31 Oct 2004 19:52:46 -0000	1.14
+++ gdb/m68klinux-tdep.c	21 Nov 2004 01:45:49 -0000
@@ -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
   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);
 }
 
Index: gdb/config/m68k/linux.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/linux.mt,v
retrieving revision 1.6
diff -u -a -p -r1.6 linux.mt
--- gdb/config/m68k/linux.mt	13 Sep 2004 20:55:40 -0000	1.6
+++ gdb/config/m68k/linux.mt	21 Nov 2004 01:45:55 -0000
@@ -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

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 NÃrnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]