diff options
author | 2008-05-02 20:38:16 +0000 | |
---|---|---|
committer | 2008-05-02 20:38:16 +0000 | |
commit | 60c5725ca96c0d9c347f04d37f0e1f6d0f263f41 (patch) | |
tree | 387933a649a79c50e3a372850696b04dbe644995 /gdb/gdbarch.h | |
parent | * objfiles.c (init_entry_point_info): Handle shared libraries. (diff) | |
download | binutils-gdb-60c5725ca96c0d9c347f04d37f0e1f6d0f263f41.tar.gz binutils-gdb-60c5725ca96c0d9c347f04d37f0e1f6d0f263f41.tar.bz2 binutils-gdb-60c5725ca96c0d9c347f04d37f0e1f6d0f263f41.zip |
* Makefile.in (arm-tdep.o): Update.
* arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
(struct arm_per_objfile, arm_compare_mapping_symbols): New.
(arm_pc_is_thumb): Use mapping symbols.
(arm_objfile_data_cleanup, arm_record_special_symbol): New.
(arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
(_initialize_arm_tdep): Initialize arm_objfile_data_key.
* elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
* gdbarch.sh: Add record_special_symbol.
* gdbarch.c, gdbarch.h: Regenerated.
* objfiles.c (struct objfile_data): Add cleanup member.
(register_objfile_data_with_cleanup): New function, from
register_objfile_data.
(register_objfile_data): Use it.
(objfile_free_data): Call clear_objfile_data.
(clear_objfile_data): Call cleanup functions.
* objfiles.h (register_objfile_data_with_cleanup): Declare.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index e89bd46bd8b..560b2efccc1 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -794,6 +794,14 @@ typedef int (gdbarch_target_signal_to_host_ftype) (struct gdbarch *gdbarch, enum extern int gdbarch_target_signal_to_host (struct gdbarch *gdbarch, enum target_signal ts); extern void set_gdbarch_target_signal_to_host (struct gdbarch *gdbarch, gdbarch_target_signal_to_host_ftype *target_signal_to_host); +/* Record architecture-specific information from the symbol table. */ + +extern int gdbarch_record_special_symbol_p (struct gdbarch *gdbarch); + +typedef void (gdbarch_record_special_symbol_ftype) (struct gdbarch *gdbarch, struct objfile *objfile, asymbol *sym); +extern void gdbarch_record_special_symbol (struct gdbarch *gdbarch, struct objfile *objfile, asymbol *sym); +extern void set_gdbarch_record_special_symbol (struct gdbarch *gdbarch, gdbarch_record_special_symbol_ftype *record_special_symbol); + extern struct gdbarch_tdep *gdbarch_tdep (struct gdbarch *gdbarch); |