aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
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.h
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.h')
-rw-r--r--gdb/objfiles.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 46e7ea5..b14aab0 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -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);