diff options
author | Tom Tromey <tromey@redhat.com> | 2010-07-13 20:49:26 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-07-13 20:49:26 +0000 |
commit | 58b6ab1339836b1684461bec9eb72682bc2972df (patch) | |
tree | 91438643eba1a6f44b3249c36e0b12565b36a9b8 /gdb/symfile.h | |
parent | f5011d116d48751c5f60071625b3f85738083691 (diff) | |
download | gdb-58b6ab1339836b1684461bec9eb72682bc2972df.zip gdb-58b6ab1339836b1684461bec9eb72682bc2972df.tar.gz gdb-58b6ab1339836b1684461bec9eb72682bc2972df.tar.bz2 |
* symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
(basic_lookup_transparent_type): Likewise.
* symfile.h (struct quick_symbol_functions)
<pre_expand_symtabs_matching>: New field.
* psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
(psym_functions): Update.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r-- | gdb/symfile.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h index d53c465..a869fa3 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -171,6 +171,15 @@ struct quick_symbol_functions int kind, const char *name, domain_enum domain); + /* This is called to expand symbol tables before looking up a + symbol. A backend can choose to implement this and then have its + `lookup_symbol' hook always return NULL, or the reverse. (It + doesn't make sense to implement both.) The arguments are as for + `lookup_symbol'. */ + void (*pre_expand_symtabs_matching) (struct objfile *objfile, + int kind, const char *name, + domain_enum domain); + /* Print statistics about any indices loaded for OBJFILE. The statistics should be printed to gdb_stdout. This is used for "maint print statistics". */ |