From 4a4cb3c4436c3470a8aa15e9b688c1b6f9859c74 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 21 Jun 2021 16:56:52 +0200 Subject: [PATCH] [gdb/symtab] Add per-cu expansion state --- gdb/psympriv.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gdb/psympriv.h b/gdb/psympriv.h index 597d12084eb..feced066cb6 100644 --- a/gdb/psympriv.h +++ b/gdb/psympriv.h @@ -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 -- 2.47.2