diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-20 17:23:40 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-20 17:23:45 -0600 |
commit | caf8c1e5071295d25f3843d5d39541df24b45787 (patch) | |
tree | 2be1468f6e2e29fb26cc8e60e2abd3c6114927e2 /gdb/psympriv.h | |
parent | 3aa31ce7884f979c68d440a4352c8d69a3283f6c (diff) | |
download | gdb-caf8c1e5071295d25f3843d5d39541df24b45787.zip gdb-caf8c1e5071295d25f3843d5d39541df24b45787.tar.gz gdb-caf8c1e5071295d25f3843d5d39541df24b45787.tar.bz2 |
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 <tom@tromey.com>
* psymtab.c (psymbol_functions::count_psyms): Rename.
(psymbol_functions::print_stats): Update.
* psympriv.h (struct psymbol_functions) <count_psyms>: Declare
method.
Diffstat (limited to 'gdb/psympriv.h')
-rw-r--r-- | gdb/psympriv.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<CORE_ADDR> *seen_addrs, |