(arm_wince_init_abi): Call set_solib_ops.
* i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
(i386_cygwin_init_abi): Call set_solib_ops.
* solib-target.c: Include "solib-target.h".
(solib_target_so_ops): Make global.
(_initialize_solib_target): Do not set current_target_so_ops.
* solib-target.h: New file.
* Makefile.in: Update dependencies.
+2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
+ (arm_wince_init_abi): Call set_solib_ops.
+ * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
+ (i386_cygwin_init_abi): Call set_solib_ops.
+ * solib-target.c: Include "solib-target.h".
+ (solib_target_so_ops): Make global.
+ (_initialize_solib_target): Do not set current_target_so_ops.
+ * solib-target.h: New file.
+ * Makefile.in: Update dependencies.
+
2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
* mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
solib_pa64_h = solib-pa64.h
solib_som_h = solib-som.h
solib_svr4_h = solib-svr4.h
+solib_target_h = solib-target.h
solist_h = solist.h $(symtab_h)
source_h = source.h
sparc64_tdep_h = sparc64-tdep.h $(sparc_tdep_h)
$(dwarf2_frame_h) $(gdbtypes_h) $(prologue_value_h) \
$(target_descriptions_h) $(user_regs_h)
arm-wince-tdep.o: arm-wince-tdep.c $(defs_h) $(osabi_h) \
- $(gdbcore_h) $(target_h) $(gdb_string_h) $(arm_tdep_h)
+ $(gdbcore_h) $(target_h) $(solib_h) $(solib_target_h) \
+ $(gdb_string_h) $(arm_tdep_h)
auxv.o: auxv.c $(defs_h) $(target_h) $(gdbtypes_h) $(command_h) \
$(inferior_h) $(valprint_h) $(gdb_assert_h) $(auxv_h) \
$(elf_common_h)
$(gdbcore_h) $(regcache_h) $(osabi_h) $(gdb_string_h) $(i386_tdep_h)
i386-cygwin-tdep.o: i386-cygwin-tdep.c $(defs_h) $(osabi_h) $(gdb_string_h) \
$(i386_tdep_h) $(regset_h) $(gdb_obstack_h) $(xml_support_h) \
- $(gdbcore_h) $(i386_cygwin_tdep_h)
+ $(gdbcore_h) $(solib_h) $(solib_target_h) $(i386_cygwin_tdep_h)
i386fbsd-nat.o: i386fbsd-nat.c $(defs_h) $(inferior_h) $(regcache_h) \
$(target_h) $(fbsd_nat_h) $(i386_tdep_h) $(i386bsd_nat_h) \
$(bsd_kvm_h)
$(exec_h) $(auxv_h)
solib-target.o: solib-target.c $(defs_h) $(objfiles_h) $(solist_h) \
$(symtab_h) $(symfile_h) $(target_h) $(vec_h) $(xml_support_h) \
- $(gdb_string_h)
+ $(solib_target_h) $(gdb_string_h)
sol-thread.o: sol-thread.c $(defs_h) $(gdbthread_h) $(target_h) \
$(inferior_h) $(gdb_stat_h) $(gdbcmd_h) $(gdbcore_h) $(regcache_h) \
$(solib_h) $(symfile_h) $(observer_h) $(gdb_string_h) $(gregset_h)
#include "osabi.h"
#include "gdbcore.h"
#include "target.h"
+#include "solib.h"
+#include "solib-target.h"
#include "gdb_string.h"
set_gdbarch_char_signed (gdbarch, 1);
/* Shared library handling. */
+ set_solib_ops (gdbarch, &solib_target_so_ops);
set_gdbarch_skip_trampoline_code (gdbarch, arm_pe_skip_trampoline_code);
/* Single stepping. */
#include "gdb_obstack.h"
#include "xml-support.h"
#include "gdbcore.h"
+#include "solib.h"
+#include "solib-target.h"
/* Core file support. */
tdep->gregset_num_regs = ARRAY_SIZE (i386_win32_gregset_reg_offset);
tdep->sizeof_gregset = I386_WIN32_SIZEOF_GREGSET;
+ set_solib_ops (gdbarch, &solib_target_so_ops);
+
/* Core file support. */
set_gdbarch_regset_from_core_section
(gdbarch, i386_win32_regset_from_core_section);
#include "symfile.h"
#include "target.h"
#include "vec.h"
+#include "solib-target.h"
#include "gdb_string.h"
return in_plt_section (pc, NULL);
}
-static struct target_so_ops solib_target_so_ops;
+struct target_so_ops solib_target_so_ops;
extern initialize_file_ftype _initialize_solib_target; /* -Wmissing-prototypes */
= solib_target_open_symbol_file_object;
solib_target_so_ops.in_dynsym_resolve_code
= solib_target_in_dynsym_resolve_code;
-
- current_target_so_ops = &solib_target_so_ops;
}