diff options
author | Joel Brobecker <brobecker@adacore.com> | 2014-02-10 09:03:30 +0400 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2014-02-10 11:48:53 +0400 |
commit | 3d9434b5ddc141178be232048e3d944955cc1f91 (patch) | |
tree | d33b9b7550bd5fb4c2ff0bef4f8bed9631e4582f /gdb/symfile-debug.c | |
parent | f0c5f9b2b8438e44abc30d18574a4d2ea44d2f67 (diff) | |
download | binutils-3d9434b5ddc141178be232048e3d944955cc1f91.zip binutils-3d9434b5ddc141178be232048e3d944955cc1f91.tar.gz binutils-3d9434b5ddc141178be232048e3d944955cc1f91.tar.bz2 |
[Ada] Add a symbol lookup cache
This patch implements the caching mechanism alluded to in a comment
next to some stubbed functions.
gdb/ChangeLog:
* ada-lang.c (HASH_SIZE): New macro.
(struct cache_entry): New type.
(cache_space, cache): New static globals.
(ada_clear_symbol_cache, find_entry): New functions.
(lookup_cached_symbol, cache_symbol): Implement.
(ada_new_objfile_observer, ada_free_objfile_observer): New.
(_initialize_ada_language): Attach ada_new_objfile_observer
and ada_free_objfile_observer.
Diffstat (limited to 'gdb/symfile-debug.c')
0 files changed, 0 insertions, 0 deletions