+2019-01-10 Tom Tromey <tom@tromey.com>
+
+ * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
+ PSYMBOL_SET_LANGUAGE.
+ (allocate_psymtab): Allocate psymtab on the psymtab obstack.
+
2019-01-10 Tom Tromey <tom@tromey.com>
* psymtab.h (psymtab_storage::obstack): New method.
memset (&psymbol.language_specific, 0, sizeof (psymbol.language_specific));
psymbol.ada_mangled = 0;
- symbol_set_language (&psymbol, language, &objfile->objfile_obstack);
+ symbol_set_language (&psymbol, language,
+ objfile->partial_symtabs->obstack ());
symbol_set_names (&psymbol, name, namelength, copy_name, objfile->per_bfd);
/* Stash the partial symbol away in the cache. */
objfile->partial_symtabs->free_psymtabs = psymtab->next;
}
else
- psymtab = XOBNEW (&objfile->objfile_obstack, partial_symtab);
+ psymtab = XOBNEW (objfile->partial_symtabs->obstack (), partial_symtab);
memset (psymtab, 0, sizeof (struct partial_symtab));
psymtab->filename