aboutsummaryrefslogtreecommitdiff
path: root/gdb/psymtab.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-20 17:23:40 -0600
committerTom Tromey <tom@tromey.com>2021-03-20 17:23:44 -0600
commitd1eef86d12f5aa2f8461add1180df9db4b59a39d (patch)
tree085a1f465fc21fd51c7d8b03fa35e44bc660a1f6 /gdb/psymtab.h
parenteb00e4686dd1a1530737e2de7eae971d61332da1 (diff)
downloadgdb-d1eef86d12f5aa2f8461add1180df9db4b59a39d.zip
gdb-d1eef86d12f5aa2f8461add1180df9db4b59a39d.tar.gz
gdb-d1eef86d12f5aa2f8461add1180df9db4b59a39d.tar.bz2
Introduce objfile::require_partial_symbols
This adds a new method, objfile::require_partial_symbols. This reuses most of the code from the old function in psymtab.c. That function is now made static, and simplified. gdb/ChangeLog 2021-03-20 Tom Tromey <tom@tromey.com> * symfile.c (read_symbols): Use objfile method. * symfile-debug.c (objfile::require_partial_symbols): New method. * psymtab.h (require_partial_symbols): Don't declare. * psymtab.c (require_partial_symbols): Use objfile method. Now static. (psymbol_functions::map_symtabs_matching_filename, OBJFILE) (psymbol_functions::lookup_symbol) (psymbol_functions::lookup_global_symbol_language) (psymbol_functions::find_last_source_symtab) (psymbol_functions::forget_cached_source_info) (psymbol_functions::print_stats) (psymbol_functions::expand_symtabs_for_function) (psymbol_functions::expand_all_symtabs) (psymbol_functions::expand_symtabs_with_fullname) (psymbol_functions::map_symbol_filenames) (psymbol_functions::map_matching_symbols) (psymbol_functions::expand_symtabs_matching) (psymbol_functions::find_compunit_symtab_by_address) (maintenance_print_psymbols, maintenance_info_psymtabs) (maintenance_check_psymtabs): Update. * objfiles.h (struct objfile) <require_partial_symbols>: Declare new method.
Diffstat (limited to 'gdb/psymtab.h')
-rw-r--r--gdb/psymtab.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/psymtab.h b/gdb/psymtab.h
index 18b47c5..e19cac6 100644
--- a/gdb/psymtab.h
+++ b/gdb/psymtab.h
@@ -146,14 +146,6 @@ private:
};
-/* Ensure that the partial symbols for OBJFILE have been loaded. If
- VERBOSE is true, then this will print a message when symbols
- are loaded. This function returns a range adapter suitable for
- iterating over the psymtabs of OBJFILE. */
-
-extern psymtab_storage::partial_symtab_range require_partial_symbols
- (struct objfile *objfile, bool verbose);
-
extern quick_symbol_functions_up make_psymbol_functions
(const std::shared_ptr<psymtab_storage> &);