This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]