forked from Imagelibrary/binutils-gdb
[gdb/symtab] Add per-cu expansion state
This commit is contained in:
@@ -332,10 +332,17 @@ struct partial_symtab
|
||||
|
||||
void note_interesting_symbol (partial_symbol *psym)
|
||||
{
|
||||
if (expansion_state == partial_symtab::full)
|
||||
return;
|
||||
expansion_state = partial_symtab::lazy;
|
||||
auto it = sect_off.find (psym);
|
||||
interesting_symbols.emplace (it->second);
|
||||
}
|
||||
|
||||
enum expansion_state { unexpanded, lazy, full };
|
||||
enum expansion_state expansion_state = unexpanded;
|
||||
size_t expanded_interesting_symbols = 0;
|
||||
|
||||
int number_of_dependencies = 0;
|
||||
|
||||
/* Global symbol list. This list will be sorted after readin to
|
||||
|
||||
Reference in New Issue
Block a user