diff options
author | Tom Tromey <tom@tromey.com> | 2021-04-17 09:35:04 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-04-17 09:35:05 -0600 |
commit | 84d865e39c3739097d7a3481b9c9b6b6fecb2b06 (patch) | |
tree | 564ba47ed285702b5c3a852def5321870287b1c3 /gdb/psympriv.h | |
parent | 3bfa51a75fc18775ea043efb248d0e2c35103202 (diff) | |
download | gdb-84d865e39c3739097d7a3481b9c9b6b6fecb2b06.zip gdb-84d865e39c3739097d7a3481b9c9b6b6fecb2b06.tar.gz gdb-84d865e39c3739097d7a3481b9c9b6b6fecb2b06.tar.bz2 |
Remove quick_symbol_functions::lookup_symbol
This removes quick_symbol_functions, replacing it with calls to
expand_symtabs_matching. Because the replacement is somewhat verbose,
objfile::lookup_symbol is not removed. This consolidates some
duplicated code into this one spot.
gdb/ChangeLog
2021-04-17 Tom Tromey <tom@tromey.com>
* symfile-debug.c (objfile::lookup_symbol): Rewrite.
* quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
Remove.
* psymtab.c (psymbol_functions::lookup_symbol): Remove.
* psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
* objfiles.h (struct objfile) <lookup_symbol>: Add comment.
* dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
Remove.
(struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
(dwarf2_gdb_index::lookup_symbol)
(dwarf2_debug_names_index::lookup_symbol): Remove.
Diffstat (limited to 'gdb/psympriv.h')
-rw-r--r-- | gdb/psympriv.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/psympriv.h b/gdb/psympriv.h index 25f3fe5..9d1375b 100644 --- a/gdb/psympriv.h +++ b/gdb/psympriv.h @@ -511,11 +511,6 @@ struct psymbol_functions : public quick_symbol_functions (struct objfile *objfile, const char *name, const char *real_path, gdb::function_view<bool (symtab *)> callback) override; - struct compunit_symtab *lookup_symbol (struct objfile *objfile, - block_enum block_index, - const char *name, - domain_enum domain) override; - enum language lookup_global_symbol_language (struct objfile *objfile, const char *name, domain_enum domain, |