mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user