diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-24 21:07:30 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-24 21:07:30 +0000 |
commit | e8a92f7b86db251d2472581fb95202725806a940 (patch) | |
tree | e2f608369ba494329a5bd531092a0db65e430d32 /gdb/solib.c | |
parent | 9cceb67113f53385895874525e13da49ce56fb3f (diff) | |
download | gdb-e8a92f7b86db251d2472581fb95202725806a940.zip gdb-e8a92f7b86db251d2472581fb95202725806a940.tar.gz gdb-e8a92f7b86db251d2472581fb95202725806a940.tar.bz2 |
* solib.c (solib_global_lookup): Use solib_ops instead of global
current_target_so_ops.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index a72e6c5..f687558 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -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; } |