* 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 10392da..2e83ff9 100644 (file)
@@ -1,5 +1,10 @@
 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.
        * config/frv-tm-frv.h: Delete file.
 
index a72e6c5..f687558 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;
 }