diff options
author | Tom de Vries <tdevries@suse.de> | 2021-06-21 16:03:03 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-06-24 17:48:26 +0200 |
commit | e52b6e27f0c9f151267b0b45ed4a96894a5e23dc (patch) | |
tree | 90c02993c02fef98bbb848b429d75e244f0260f0 | |
parent | f7b5068c5f41aa13ee3efa35a2555c3bfafe81f0 (diff) | |
download | binutils-e52b6e27f0c9f151267b0b45ed4a96894a5e23dc.zip binutils-e52b6e27f0c9f151267b0b45ed4a96894a5e23dc.tar.gz binutils-e52b6e27f0c9f151267b0b45ed4a96894a5e23dc.tar.bz2 |
[gdb/symtab] Keep track of more interesting symbols
-rw-r--r-- | gdb/psymtab.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 635cebc..568e673 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; } |