(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.
+2004-04-10 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.
+
2004-04-09 Mark Kettenis <kettenis@gnu.org>
* amd64-linux-nat.c (fetch_inferior_registers): Correctly check
$(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) \
-# 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
-# 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
#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
#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 */
#include "osabi.h"
#include "i386-tdep.h"
+#include "solib-svr4.h"
/* From <ia32/sys/reg.h>. */
static int i386_sol2_gregset_reg_offset[] =
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);
}
\f