mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 02:35:00 +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:
@ -366,8 +366,9 @@ allocate_objfile (bfd *abfd, const char *name, int flags)
|
||||
}
|
||||
|
||||
/* Retrieve the gdbarch associated with OBJFILE. */
|
||||
|
||||
struct gdbarch *
|
||||
get_objfile_arch (struct objfile *objfile)
|
||||
get_objfile_arch (const struct objfile *objfile)
|
||||
{
|
||||
return objfile->per_bfd->gdbarch;
|
||||
}
|
||||
|
Reference in New Issue
Block a user