diff options
author | Lancelot SIX <lancelot.six@amd.com> | 2022-05-24 13:32:18 +0100 |
---|---|---|
committer | Lancelot SIX <lancelot.six@amd.com> | 2022-05-26 19:01:42 +0100 |
commit | 98aa8321ee1bbd4b511992f2bbc4d34450c4a3f9 (patch) | |
tree | f62a9f4d0aafdeae5d112381becb5937593096f8 /gdb/psympriv.h | |
parent | fcf8e814206f9f5a0a90b2f509fe12d841fa5163 (diff) | |
download | gdb-98aa8321ee1bbd4b511992f2bbc4d34450c4a3f9.zip gdb-98aa8321ee1bbd4b511992f2bbc4d34450c4a3f9.tar.gz gdb-98aa8321ee1bbd4b511992f2bbc4d34450c4a3f9.tar.bz2 |
gdb: Change psymbol_functions::require_partial_symbols to partial_symbols
The previous patch ensured that partial symbols are read before calling
most of the quick_function's methods.
The psymbol_functions class has the require_partial_symbols method which
serves this exact purpose, and does not need to do it anymore.
This patch renames this method to partial_symbols and makes it an accessor
which asserts that partial symbols have been read at this point.
Regression tested on x86_64-linux.
Diffstat (limited to 'gdb/psympriv.h')
-rw-r--r-- | gdb/psympriv.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/psympriv.h b/gdb/psympriv.h index 677a57e..a7ba82a 100644 --- a/gdb/psympriv.h +++ b/gdb/psympriv.h @@ -553,9 +553,8 @@ struct psymbol_functions : public quick_symbol_functions m_psymbol_map.clear (); } - /* Ensure the partial symbols for OBJFILE have been loaded. Return - a range adapter for the psymtabs. */ - psymtab_storage::partial_symtab_range require_partial_symbols + /* Return a range adapter for the psymtabs. */ + psymtab_storage::partial_symtab_range partial_symbols (struct objfile *objfile); /* Return the partial symbol storage associated with this |