aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-11-06 17:10:51 -0800
committerDoug Evans <xdje42@gmail.com>2014-11-06 17:10:51 -0800
commit9c1877ead06db18e19614a598d1e280acb97e971 (patch)
tree838fc858f32a48f925a880458c69aa26da686696 /gdb/objfiles.c
parent7ba3b1171f703e21555d78fbfb34be01adc89d5a (diff)
downloadgdb-9c1877ead06db18e19614a598d1e280acb97e971.zip
gdb-9c1877ead06db18e19614a598d1e280acb97e971.tar.gz
gdb-9c1877ead06db18e19614a598d1e280acb97e971.tar.bz2
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.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 2a5c15f..38a365c 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -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;
}