Make the vector interesting_symbols available during full symbols expansion.
{
dwarf2_per_objfile *per_objfile = get_dwarf2_per_objfile (objfile);
- gdb_assert (!per_objfile->symtab_set_p (per_cu_data));
+ if (lazy_expand_symtab_p)
+ per_cu_data->interesting_symbols = &interesting_symbols;
+ else
+ {
+ gdb_assert (!per_objfile->symtab_set_p (per_cu_data));
+ per_cu_data->interesting_symbols = nullptr;
+ }
/* If this psymtab is constructed from a debug-only objfile, the
has_section_at_zero flag will not necessarily be correct. We
functions above. */
std::vector <dwarf2_per_cu_data *> *imported_symtabs = nullptr;
+ std::set <sect_offset> *interesting_symbols = nullptr;
+
/* Return true of IMPORTED_SYMTABS is empty or not yet allocated. */
bool imported_symtabs_empty () const
{