From caf8c1e5071295d25f3843d5d39541df24b45787 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 20 Mar 2021 17:23:40 -0600 Subject: Change count_psyms to be a method on psymbol_functions This removes a use of objfile->psymtabs by changing count_psyms to be a method on psymbol_functions. gdb/ChangeLog 2021-03-20 Tom Tromey * psymtab.c (psymbol_functions::count_psyms): Rename. (psymbol_functions::print_stats): Update. * psympriv.h (struct psymbol_functions) : Declare method. --- gdb/psympriv.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/psympriv.h') diff --git a/gdb/psympriv.h b/gdb/psympriv.h index 85651f5..b613911 100644 --- a/gdb/psympriv.h +++ b/gdb/psympriv.h @@ -591,6 +591,9 @@ struct psymbol_functions : public quick_symbol_functions private: + /* Count the number of partial symbols in *THIS. */ + int count_psyms (); + void fill_psymbol_map (struct objfile *objfile, struct partial_symtab *psymtab, std::set *seen_addrs, -- cgit v1.1