aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-11-06 17:10:51 -0800
committerDoug Evans <xdje42@gmail.com>2014-11-06 17:10:51 -0800
commit9c1877ead06db18e19614a598d1e280acb97e971 (patch)
tree838fc858f32a48f925a880458c69aa26da686696 /gdb/solib.c
parent7ba3b1171f703e21555d78fbfb34be01adc89d5a (diff)
downloadgdb-9c1877ead06db18e19614a598d1e280acb97e971.zip
gdb-9c1877ead06db18e19614a598d1e280acb97e971.tar.gz
gdb-9c1877ead06db18e19614a598d1e280acb97e971.tar.bz2
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.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c2
1 files changed, 1 insertions, 1 deletions
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);