gdb/
[deliverable/binutils-gdb.git] / gdb / buildsym.c
index 8d7fed38ae5de9d13509dce0af6f7878f42aadad..71bd8f4c43a00e68e215fb6bb5e24f3d87fe00a6 100644 (file)
@@ -1187,6 +1187,12 @@ end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section)
          struct symbol *sym;
          struct dict_iterator iter;
 
+         /* Inlined functions may have symbols not in the global or static
+            symbol lists.  */
+         if (BLOCK_FUNCTION (block) != NULL)
+           if (SYMBOL_SYMTAB (BLOCK_FUNCTION (block)) == NULL)
+             SYMBOL_SYMTAB (BLOCK_FUNCTION (block)) = symtab;
+
          for (sym = dict_iterator_first (BLOCK_DICT (block), &iter);
               sym != NULL;
               sym = dict_iterator_next (&iter))
This page took 0.023884 seconds and 4 git commands to generate.