This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [3/10] introduce psymtab users
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> If PST is not yet expanded it means very every pst->users[i]
Jan> element is also not expanded, right?
That's right.
When expanding a PU, we look for a canonical including CU, and expand
that instead. This is handled by the loop in psymtab_to_symtab.
When expanding a CU, we expand all of the PUs it includes (but in
isolation, we don't go "back up the chain" to the canonical CU). This
is handled by how the symtab reader processes DW_TAG_imported_unit.
Tom