mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +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:
parent
7ba3b1171f
commit
9c1877ead0
@ -1,3 +1,10 @@
|
||||
2014-11-06 Doug Evans <xdje42@gmail.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
|
||||
|
||||
* nios2-tdep.c (wild_insn): Delete.
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -465,7 +465,7 @@ struct objfile
|
||||
|
||||
extern struct objfile *allocate_objfile (bfd *, const char *name, int);
|
||||
|
||||
extern struct gdbarch *get_objfile_arch (struct objfile *);
|
||||
extern struct gdbarch *get_objfile_arch (const struct objfile *);
|
||||
|
||||
extern int entry_point_address_query (CORE_ADDR *entry_p);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user