summaryrefslogtreecommitdiff
path: root/gdb/solib-svr4.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-24 21:22:08 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-24 21:22:08 +0000
commit7e3cb44ccb0cdc45cc8e266ad682219b13fb64ad (patch)
tree5f00589b5f19a17f9fac5f9a2f1051417fca0728 /gdb/solib-svr4.c
parent8d005789186b3d1e0b58b37ead5f260c05256f28 (diff)
downloadbinutils-gdb-7e3cb44ccb0cdc45cc8e266ad682219b13fb64ad.tar.gz
* 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.
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r--gdb/solib-svr4.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 36c6df0f595..1d2737aae3a 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -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;
}