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