diff options
author | Doug Evans <xdje42@gmail.com> | 2014-11-06 17:10:51 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-11-06 17:10:51 -0800 |
commit | 9c1877ead06db18e19614a598d1e280acb97e971 (patch) | |
tree | 838fc858f32a48f925a880458c69aa26da686696 /gdb/objfiles.h | |
parent | 7ba3b1171f703e21555d78fbfb34be01adc89d5a (diff) | |
download | gdb-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.h | 2 |
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); |