OSDN Git Service

* Makefile.in (arm-tdep.o): Update.
authordrow <drow>
Fri, 2 May 2008 20:38:15 +0000 (20:38 +0000)
committerdrow <drow>
Fri, 2 May 2008 20:38:15 +0000 (20:38 +0000)
commita04f184b713c28eecbc2d00ccff46016a05d6b8b
treecfb4fcaed08b0d19523341424e823904751dab64
parentdbc72d05c46b40eddfd658d9594dde54d9707dfe
* 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.
gdb/ChangeLog
gdb/Makefile.in
gdb/arm-tdep.c
gdb/elfread.c
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh
gdb/objfiles.c
gdb/objfiles.h