From: Ulrich Weigand Date: Wed, 24 Oct 2007 21:07:30 +0000 (+0000) Subject: * solib.c (solib_global_lookup): Use solib_ops instead of global X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=e8a92f7b86db251d2472581fb95202725806a940;p=deliverable%2Fbinutils-gdb.git * solib.c (solib_global_lookup): Use solib_ops instead of global current_target_so_ops. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 10392dab17..2e83ff95cf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-10-24 Ulrich Weigand + + * solib.c (solib_global_lookup): Use solib_ops instead of global + current_target_so_ops. + 2007-10-24 Ulrich Weigand * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove. diff --git a/gdb/solib.c b/gdb/solib.c index a72e6c5731..f687558180 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; }