aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-target.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-06-15 17:57:38 +0000
committerPedro Alves <palves@redhat.com>2010-06-15 17:57:38 +0000
commit98d64339ed334b1f72ef5265d6bc416d04a4bb55 (patch)
tree695b8a5b4b2cc84b9ad2da8416bc5e7f1ee55e34 /gdb/solib-target.c
parent68ed838c0d5d6e20450e43264ce2e60981d085d0 (diff)
downloadgdb-98d64339ed334b1f72ef5265d6bc416d04a4bb55.zip
gdb-98d64339ed334b1f72ef5265d6bc416d04a4bb55.tar.gz
gdb-98d64339ed334b1f72ef5265d6bc416d04a4bb55.tar.bz2
* Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
(SFILES): Remove solib-null.c, add solib-target.c. (COMMON_OBS): Remove solib-null.o, add solib-target.o. (ALLDEPFILES): Remove solib-target.c. * solib-target.c (_initialize_solib_target): Set current_target_so_ops to solib_target_so_ops if not already set. * solib-null.c: Delete.
Diffstat (limited to 'gdb/solib-target.c')
-rw-r--r--gdb/solib-target.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/solib-target.c b/gdb/solib-target.c
index 6873e39..b2d8bc4 100644
--- a/gdb/solib-target.c
+++ b/gdb/solib-target.c
@@ -497,4 +497,9 @@ _initialize_solib_target (void)
solib_target_so_ops.in_dynsym_resolve_code
= solib_target_in_dynsym_resolve_code;
solib_target_so_ops.bfd_open = solib_bfd_open;
+
+ /* Set current_target_so_ops to solib_target_so_ops if not already
+ set. */
+ if (current_target_so_ops == 0)
+ current_target_so_ops = &solib_target_so_ops;
}