* solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 24 Oct 2007 21:22:08 +0000 (21:22 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 24 Oct 2007 21:22:08 +0000 (21:22 +0000)
set_solib_ops to install SVR4 operations.
(_initialize_svr4_solib): Do not set current_target_so_ops.

* config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
* config/i386/i386gnu.mt (TDEPFILES): ... to here.

gdb/ChangeLog
gdb/config/i386/i386gnu.mh
gdb/config/i386/i386gnu.mt
gdb/solib-svr4.c

index 1fcdf293d0868c110b020df5c62fcb5258eaffd5..c4fb85daa38edc76f48f3fdf65c8e976cb191a45 100644 (file)
@@ -1,3 +1,12 @@
+2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
+       set_solib_ops to install SVR4 operations.
+       (_initialize_svr4_solib): Do not set current_target_so_ops.
+
+       * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
+       * config/i386/i386gnu.mt (TDEPFILES): ... to here.
+
 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
index fa7f7c359c533e6ea688c902c7b9c059cc73b88f..a188b1c15090a58df511d221d87cd6a34765624a 100644 (file)
@@ -1,6 +1,5 @@
 # Host: Intel 386 running the GNU Hurd
-NATDEPFILES= i386gnu-nat.o gnu-nat.o corelow.o core-regset.o \
-            fork-child.o solib.o solib-svr4.o \
+NATDEPFILES= i386gnu-nat.o gnu-nat.o corelow.o core-regset.o fork-child.o \
             notify_S.o process_reply_S.o msg_reply_S.o \
             msg_U.o exc_request_U.o exc_request_S.o
 
index 220b64ab310aeaaff17e88f3000a7d3141774484..6684188aaa3588975dccc81b79ccdac59622e0e6 100644 (file)
@@ -1,2 +1,2 @@
 # Target: Intel 386 running the GNU Hurd
-TDEPFILES= i386-tdep.o i387-tdep.o i386gnu-tdep.o
+TDEPFILES= i386-tdep.o i387-tdep.o i386gnu-tdep.o solib.o solib-svr4.o
index 36c6df0f595bcd43566a7dcbcaf701f57009915b..1d2737aae3a632a571cb793cbbe1f9f10fd33a09 100644 (file)
@@ -1449,7 +1449,7 @@ solib_svr4_init (struct obstack *obstack)
 }
 
 /* Set the architecture-specific `struct link_map_offsets' fetcher for
-   GDBARCH to FLMO.  */
+   GDBARCH to FLMO.  Also, install SVR4 solib_ops into GDBARCH.  */
 
 void
 set_solib_svr4_fetch_link_map_offsets (struct gdbarch *gdbarch,
@@ -1458,6 +1458,8 @@ set_solib_svr4_fetch_link_map_offsets (struct gdbarch *gdbarch,
   struct solib_svr4_ops *ops = gdbarch_data (gdbarch, solib_svr4_data);
 
   ops->fetch_link_map_offsets = flmo;
+
+  set_solib_ops (gdbarch, &svr4_so_ops);
 }
 
 /* Fetch a link_map_offsets structure using the architecture-specific
@@ -1583,7 +1585,4 @@ _initialize_svr4_solib (void)
   svr4_so_ops.open_symbol_file_object = open_symbol_file_object;
   svr4_so_ops.in_dynsym_resolve_code = svr4_in_dynsym_resolve_code;
   svr4_so_ops.lookup_lib_global_symbol = elf_lookup_lib_symbol;
-
-  /* FIXME: Don't do this here.  *_gdbarch_init() should set so_ops. */
-  current_target_so_ops = &svr4_so_ops;
 }
This page took 0.030876 seconds and 4 git commands to generate.