diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2015-08-28 19:04:56 +0200 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2015-08-28 19:04:56 +0200 |
commit | 6f05925675b90983271289b782432b6297d26741 (patch) | |
tree | 6cf59e290aa819204bdc955e210fc6be18eb7939 /gdb/solib.c | |
parent | 70987a9256a298e7ddc5d42e6580f7aba6f36f01 (diff) | |
download | gdb-6f05925675b90983271289b782432b6297d26741.zip gdb-6f05925675b90983271289b782432b6297d26741.tar.gz gdb-6f05925675b90983271289b782432b6297d26741.tar.bz2 |
Revert: solib_global_lookup: Fetch arch from objfile.
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.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index d2ea901..c46116d 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -1516,7 +1516,7 @@ solib_global_lookup (struct objfile *objfile, 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); |