diff options
author | Doug Evans <xdje42@gmail.com> | 2015-01-11 15:16:26 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2015-01-11 15:16:26 -0800 |
commit | 6a3ca067521821b6c2ad9a836104d11e6dd760cb (patch) | |
tree | a4d8b0b984406ffca700835630b2117f3e1edd59 /gdb/doc | |
parent | 439250fbacfc212a5959b4b5a53ecfee91dfb866 (diff) | |
download | gdb-6a3ca067521821b6c2ad9a836104d11e6dd760cb.zip gdb-6a3ca067521821b6c2ad9a836104d11e6dd760cb.tar.gz gdb-6a3ca067521821b6c2ad9a836104d11e6dd760cb.tar.bz2 |
Temporarily revert symbol lookup cache.
clear_symtab_users calls breakpoint_re_set before
observer_notify_new_objfile(NULL), and thus symbol lookup
done during breakpoint_re_set will see a stale cache.
Presumably we just need to move the call to observer_notify_new_objfile(NULL)
to before breakpoint_re_set, but need to check for other such issues,
and 7.9 is scheduled to branch tomorrow.
Reverts commits:
b2fb95e006c29e2cbe4b30523879fe3640f906ad
400678a494713abf8f7ea2367f213109a2c4b886
d98b9ccbccf36563dad92f6093a93655b38bc51b
77087adf50cedf78cc216ac6eb3b2863839d713c
gdb/ChangeLog:
* symtab.c (eq_symbol_entry): Use SYMBOL_SEARCH_NAME and
symbol_matches_domain for symbol comparisons.
* symtab.c (symbol_cache_mark_found): Improve function comment.
Rename parameter objfile to objfile_context.
(symbol_cache_mark_not_found): Improve function comment.
Add symbol lookup cache.
* NEWS: Document new options and commands.
* symtab.c (symbol_cache_key): New static global.
(DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
(SYMBOL_LOOKUP_FAILED): New macro.
(symbol_cache_slot_state): New enum.
(block_symbol_cache): New struct.
(symbol_cache): New struct.
(new_symbol_cache_size, symbol_cache_size): New static globals.
(hash_symbol_entry, eq_symbol_entry): New functions.
(symbol_cache_byte_size, resize_symbol_cache): New functions.
(make_symbol_cache, free_symbol_cache): New functions.
(get_symbol_cache, symbol_cache_cleanup): New function.
(set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
(symbol_cache_lookup, symbol_cache_clear_slot): New function.
(symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
(symbol_cache_flush, symbol_cache_dump): New functions.
(maintenance_print_symbol_cache): New function.
(maintenance_flush_symbol_cache): New function.
(symbol_cache_stats): New function.
(maintenance_print_symbol_cache_statistics): New function.
(symtab_new_objfile_observer): New function.
(symtab_free_objfile_observer): New function.
(lookup_static_symbol, lookup_global_symbol): Use symbol cache.
(_initialize_symtab): Init symbol_cache_key. New parameter
maint symbol-cache-size. New maint commands print symbol-cache,
print symbol-cache-statistics, flush-symbol-cache.
Install new_objfile, free_objfile observers.
gdb/doc/ChangeLog:
* gdb.texinfo (Symbols): Document new commands
"maint print symbol-cache", "maint print symbol-cache-statistics",
"maint flush-symbol-cache". Document new option
"maint set symbol-cache-size".
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 33 |
2 files changed, 1 insertions, 39 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index e81a85b..33f233d 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -5,13 +5,6 @@ (Symbols): Ditto. (Maintenance Commands): Delete docs for "maint demangle". -2015-01-10 Doug Evans <xdje42@gmail.com> - - * gdb.texinfo (Symbols): Document new commands - "maint print symbol-cache", "maint print symbol-cache-statistics", - "maint flush-symbol-cache". Document new option - "maint set symbol-cache-size". - 2014-12-31 Joel Brobecker <brobecker@adacore.com> * gdb.texinfo (Files): Remove documentation of the diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index bd8596c..b059ac2 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -16489,40 +16489,9 @@ line 1574. @} (@value{GDBP}) @end smallexample - -@kindex maint set symbol-cache-size -@cindex symbol cache size -@item maint set symbol-cache-size @var{size} -Set the size of the symbol cache to @var{size}. -The default size is intended to be good enough for debugging -most applications. This option exists to allow for experimenting -with different sizes. - -@kindex maint show symbol-cache-size -@item maint show symbol-cache-size -Show the size of the symbol cache. - -@kindex maint print symbol-cache -@cindex symbol cache, printing its contents -@item maint print symbol-cache -Print the contents of the symbol cache. -This is useful when debugging symbol cache issues. - -@kindex maint print symbol-cache-statistics -@cindex symbol cache, printing usage statistics -@item maint print symbol-cache-statistics -Print symbol cache usage statistics. -This helps determine how well the cache is being utilized. - -@kindex maint flush-symbol-cache -@cindex symbol cache, flushing -@item maint flush-symbol-cache -Flush the contents of the symbol cache, all entries are removed. -This command is useful when debugging the symbol cache. -It is also useful when collecting performance data. - @end table + @node Altering @chapter Altering Execution |