]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/symtab] Keep track of more interesting symbols
authorTom de Vries <tdevries@suse.de>
Mon, 21 Jun 2021 14:03:03 +0000 (16:03 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 24 Jun 2021 15:48:26 +0000 (17:48 +0200)
gdb/psymtab.c

index 635cebcde2da8dc57e70c54f3d41d9e9179d504a..568e673f89167702aee74d0ec1ae3dc9e5a1fffe 100644 (file)
@@ -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;
 }