* solib.c (solib_global_lookup): Use solib_ops instead of global
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 24 Oct 2007 21:07:30 +0000 (21:07 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 24 Oct 2007 21:07:30 +0000 (21:07 +0000)
current_target_so_ops.

gdb/ChangeLog
gdb/solib.c

index 10392dab17ef44323c51185460327fe7587a453a..2e83ff95cf35595fd69859e8d564dd78cc4e8135 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * solib.c (solib_global_lookup): Use solib_ops instead of global
+       current_target_so_ops.
+
 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
index a72e6c57319e00d9517ae5df8e7a576c90c05310..f687558180fa9c680b53f4992b1f92250707530f 100644 (file)
@@ -985,10 +985,11 @@ solib_global_lookup (const struct objfile *objfile,
                     const domain_enum domain,
                     struct symtab **symtab)
 {
-  if (current_target_so_ops->lookup_lib_global_symbol != NULL)
-    return current_target_so_ops->lookup_lib_global_symbol (objfile,
-                               name, linkage_name, domain, symtab);
+  struct target_so_ops *ops = solib_ops (current_gdbarch);
 
+  if (ops->lookup_lib_global_symbol != NULL)
+    return ops->lookup_lib_global_symbol (objfile, name, linkage_name,
+                                         domain, symtab);
   return NULL;
 }
 
This page took 0.030922 seconds and 4 git commands to generate.