From 9c1877ead06db18e19614a598d1e280acb97e971 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 6 Nov 2014 17:10:51 -0800 Subject: solib_global_lookup: Fetch arch from objfile, not target_gdbarch. gdb/ChangeLog: * objfiles.c (get_objfile_arch): Constify. * objfiles.h (get_objfile_arch): Update prototype. * solib.c (solib_global_lookup): Fetch arch from objfile, not target_gdbarch. --- gdb/solib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/solib.c') diff --git a/gdb/solib.c b/gdb/solib.c index 41250a2..6260dac 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -1408,7 +1408,7 @@ solib_global_lookup (const struct objfile *objfile, const char *name, const domain_enum domain) { - const struct target_so_ops *ops = solib_ops (target_gdbarch ()); + const struct target_so_ops *ops = solib_ops (get_objfile_arch (objfile)); if (ops->lookup_lib_global_symbol != NULL) return ops->lookup_lib_global_symbol (objfile, name, domain); -- cgit v1.1