+2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
+ <expand_dependencies>: ... this.
+ * psymtab.c (partial_symtab::read_dependencies): Rename to...
+ (partial_symtab::expand_dependencies): ... this.
+ * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
+ Update.
+ (dwarf2_psymtab::expand_psymtab): Update.
+ * dbxread.c (dbx_psymtab_to_symtab_1): Update.
+ * mdebugread.c (psymtab_to_symtab_1): Update.
+ * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
+
2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
* psympriv.h (discard_psymtab): Remove.
gdb_assert (!pst->readin);
/* Read in all partial symtabs on which this one is dependent. */
- pst->read_dependencies (objfile);
+ pst->expand_dependencies (objfile);
if (LDSYMLEN (pst)) /* Otherwise it's a dummy. */
{
return;
/* It's an include file, no symbols to read for it.
Everything is in the parent symtab. */
- read_dependencies (objfile);
+ expand_dependencies (objfile);
m_readin = true;
}
if (readin)
return;
- read_dependencies (objfile);
+ expand_dependencies (objfile);
dw2_do_instantiate_symtab (per_cu_data, false);
gdb_assert (get_compunit_symtab () != nullptr);
/* Read in all partial symtabs on which this one is dependent.
NOTE that we do have circular dependencies, sigh. We solved
that by setting pst->readin before this point. */
- pst->read_dependencies (objfile);
+ pst->expand_dependencies (objfile);
/* Do nothing if this is a dummy psymtab. */
virtual void expand_psymtab (struct objfile *) = 0;
/* Ensure that all the dependencies are read in. */
- void read_dependencies (struct objfile *);
+ void expand_dependencies (struct objfile *);
/* Return true if the symtab corresponding to this psymtab has been
readin. */
/* See psympriv.h. */
void
-partial_symtab::read_dependencies (struct objfile *objfile)
+partial_symtab::expand_dependencies (struct objfile *objfile)
{
for (int i = 0; i < number_of_dependencies; ++i)
{
gdb_assert (!pst->readin);
/* Read in all partial symtabs on which this one is dependent. */
- pst->read_dependencies (objfile);
+ pst->expand_dependencies (objfile);
if (((struct symloc *) pst->read_symtab_private)->numsyms != 0)
{