aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-07-13 20:49:26 +0000
committerTom Tromey <tromey@redhat.com>2010-07-13 20:49:26 +0000
commit58b6ab1339836b1684461bec9eb72682bc2972df (patch)
tree91438643eba1a6f44b3249c36e0b12565b36a9b8 /gdb/symfile.h
parentf5011d116d48751c5f60071625b3f85738083691 (diff)
downloadgdb-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.h9
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". */