From: Tom de Vries Date: Mon, 21 Jun 2021 14:03:03 +0000 (+0200) Subject: [gdb/symtab] Keep track of more interesting symbols X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e52b6e27f0c9f151267b0b45ed4a96894a5e23dc;p=thirdparty%2Fbinutils-gdb.git [gdb/symtab] Keep track of more interesting symbols --- diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 635cebcde2d..568e673f891 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -214,6 +214,9 @@ psymbol_functions::find_pc_sect_psymtab (struct objfile *objfile, || (p->address (objfile) != BMSYMBOL_VALUE_ADDRESS (msymbol))) goto next; + + if (lazy_expand_symtab_p) + pst->note_interesting_symbol (p); } /* We do not try to call FIND_PC_SECT_PSYMTAB_CLOSER as @@ -341,6 +344,10 @@ find_pc_sect_psymbol (struct objfile *objfile, } } + if (lazy_expand_symtab_p + && best != nullptr) + psymtab->note_interesting_symbol (best); + return best; }