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]

[PATCH] Punt legacy solib support on Solaris x86


This gets rid of the legacy solib support on Solaris x86.

Committed,

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* i386-sol2-tdep.c: Include "solib-svr4.h".
	(i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
	* Makefile.in (i386-sol2-tdep.o): Update dependencies.
	* config/i386/tm-i386sol2.h: Include :solib.h".
	* config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
	solib-svr4.o and solib-legacy.o.
	* config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
	solib-svr4.o.

Index: i386-sol2-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-sol2-tdep.c,v
retrieving revision 1.15
diff -u -p -r1.15 i386-sol2-tdep.c
--- i386-sol2-tdep.c 9 Apr 2004 16:28:50 -0000 1.15
+++ i386-sol2-tdep.c 9 Apr 2004 23:07:13 -0000
@@ -24,6 +24,7 @@
 #include "osabi.h"
 
 #include "i386-tdep.h"
+#include "solib-svr4.h"
 
 /* From <ia32/sys/reg.h>.  */
 static int i386_sol2_gregset_reg_offset[] =
@@ -93,6 +94,9 @@ i386_sol2_init_abi (struct gdbarch_info 
   tdep->sigcontext_addr = i386_sol2_mcontext_addr;
   tdep->sc_reg_offset = tdep->gregset_reg_offset;
   tdep->sc_num_regs = tdep->gregset_num_regs;
+
+  set_solib_svr4_fetch_link_map_offsets
+    (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }
 
 
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.535
diff -u -p -r1.535 Makefile.in
--- Makefile.in 9 Apr 2004 16:28:49 -0000 1.535
+++ Makefile.in 9 Apr 2004 23:07:13 -0000
@@ -1877,7 +1877,7 @@ i386obsd-tdep.o: i386obsd-tdep.c $(defs_
 	$(osabi_h) $(target_h) $(gdb_assert_h) $(gdb_string_h) \
 	$(i386_tdep_h) $(i387_tdep_h) $(solib_svr4_h)
 i386-sol2-tdep.o: i386-sol2-tdep.c $(defs_h) $(value_h) $(osabi_h) \
-	$(i386_tdep_h)
+	$(i386_tdep_h) $(solib_svr4_h)
 i386-stub.o: i386-stub.c
 i386-tdep.o: i386-tdep.c $(defs_h) $(arch_utils_h) $(command_h) \
 	$(dummy_frame_h) $(dwarf2_frame_h) $(doublest_h) $(floatformat_h) \
Index: config/i386/i386sol2.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/i386sol2.mh,v
retrieving revision 1.7
diff -u -p -r1.7 i386sol2.mh
--- config/i386/i386sol2.mh 15 Dec 2003 21:54:30 -0000 1.7
+++ config/i386/i386sol2.mh 9 Apr 2004 23:07:13 -0000
@@ -1,8 +1,5 @@
-# Host: Intel 386 running Solaris 2 (SVR4)
-
-XM_FILE= xm-i386.h
-
-NAT_FILE= nm-i386sol2.h
+# Host: Solaris x86
 NATDEPFILES= fork-child.o i386v4-nat.o \
-	procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o gcore.o \
-        solib.o solib-svr4.o solib-legacy.o
+	procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o gcore.o
+NAT_FILE= nm-i386sol2.h
+XM_FILE= xm-i386.h
Index: config/i386/i386sol2.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/i386sol2.mt,v
retrieving revision 1.6
diff -u -p -r1.6 i386sol2.mt
--- config/i386/i386sol2.mt 15 Dec 2003 21:54:30 -0000 1.6
+++ config/i386/i386sol2.mt 9 Apr 2004 23:07:13 -0000
@@ -1,3 +1,4 @@
-# Target: Intel 386 running Solaris 2 (SVR4)
-TDEPFILES= i386-tdep.o i387-tdep.o i386-sol2-tdep.o corelow.o
+# Target: Solaris x86
+TDEPFILES= i386-tdep.o i387-tdep.o i386-sol2-tdep.o \
+	corelow.o solib.o solib-svr4.o
 TM_FILE= tm-i386sol2.h
Index: config/i386/tm-i386sol2.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-i386sol2.h,v
retrieving revision 1.16
diff -u -p -r1.16 tm-i386sol2.h
--- config/i386/tm-i386sol2.h 6 Apr 2004 01:53:52 -0000 1.16
+++ config/i386/tm-i386sol2.h 9 Apr 2004 23:07:13 -0000
@@ -22,6 +22,8 @@
 #ifndef TM_I386SOL2_H
 #define TM_I386SOL2_H 1
 
+#include "solib.h"
+
 /* The SunPRO compiler puts out 0 instead of the address in N_SO symbols,
    and for SunPRO 3.0, N_FUN symbols too.  */
 #define SOFUN_ADDRESS_MAYBE_MISSING
@@ -30,4 +32,4 @@ extern char *sunpro_static_transform_nam
 #define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x)
 #define IS_STATIC_TRANSFORM_NAME(name) ((name)[0] == '.')
 
-#endif /* ifndef TM_I386SOL2_H */
+#endif /* tm-i386sol2.h */


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