solib_ops are installed as a property of the inferior gdbarch,
so they need to be systematically looked up via that architecture,
not some objfile architecture.
ChangeLog:
Revert:
2014-11-06 Doug Evans <xdje42@gmail.com>
* solib.c (solib_global_lookup): Fetch arch from objfile,
not target_gdbarch.
+2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
+
+ Revert:
+ 2014-11-06 Doug Evans <xdje42@gmail.com>
+ * solib.c (solib_global_lookup): Fetch arch from objfile,
+ not target_gdbarch.
+
2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
* ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
const char *name,
const domain_enum domain)
{
- const struct target_so_ops *ops = solib_ops (get_objfile_arch (objfile));
+ const struct target_so_ops *ops = solib_ops (target_gdbarch ());
if (ops->lookup_lib_global_symbol != NULL)
return ops->lookup_lib_global_symbol (objfile, name, domain);