From e52b6e27f0c9f151267b0b45ed4a96894a5e23dc Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 21 Jun 2021 16:03:03 +0200 Subject: [PATCH] [gdb/symtab] Keep track of more interesting symbols --- gdb/psymtab.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.47.2