diff options
author | Joel Brobecker <brobecker@adacore.com> | 2014-02-10 17:49:27 +0400 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2014-02-10 18:04:26 +0400 |
commit | ee01b6652ad55437e777fb7e6b1745782dc205a4 (patch) | |
tree | ab043195519425d2b6d9d9f9ba23e8e694ef4f85 /opcodes/i386-tbl.h | |
parent | 143adbbfa31d98b59c0a1509ac3819cc64b241c8 (diff) | |
download | gdb-ee01b6652ad55437e777fb7e6b1745782dc205a4.zip gdb-ee01b6652ad55437e777fb7e6b1745782dc205a4.tar.gz gdb-ee01b6652ad55437e777fb7e6b1745782dc205a4.tar.bz2 |
[Ada] Make the symbol cache per-program-space.
This patch moves the Ada symbol cache to per-program-space data.
gdb/ChangeLog:
* ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
(struct ada_symbol_cache): New.
(ada_free_symbol_cache): Forward declare.
(struct ada_pspace_data): New.
(ada_pspace_data_handle): New static global.
(get_ada_pspace_data, ada_pspace_data_cleanup)
(ada_init_symbol_cache, ada_free_symbol_cache): New functions.
(cache_space, cache): Delete, now folded inside struct
ada_pspace_data.
(ada_get_symbol_cache): New function.
(ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
implementation.
(_initialize_ada_language): Remove initialization of cache_space.
Move call to observer_attach_inferior_exit up, grouping it
with the other observer registrations inside this function.
Rename command to be more general. Add call to
register_program_space_data_with_cleanup.
Diffstat (limited to 'opcodes/i386-tbl.h')
0 files changed, 0 insertions, 0 deletions