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:
Doug Evans
2014-11-06 17:10:51 -08:00
parent 7ba3b1171f
commit 9c1877ead0
4 changed files with 11 additions and 3 deletions

View File

@ -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;
}