The DWARFCompileUnit is set as the "user data" of the lldb compile unit
directly in the constructor (see ParseCompileUnit).
This means that instead of going through unit indexes, we can just fetch
the DWARF unit directly from there.
Differential D62943
DWARF: Simplify SymbolFileDWARF::GetDWARFCompileUnit labath on Jun 6 2019, 1:39 AM. Authored by
Details The DWARFCompileUnit is set as the "user data" of the lldb compile unit This means that instead of going through unit indexes, we can just fetch
Diff Detail
Event TimelineComment Actions Just a heads up: I reverted this change (rL362862) because it broke the test suite on macOS. Breakpoints were not being resolved correctly. Comment Actions Thanks for reverting this. It seems I did not take into account here the fact that SymbolFileDWARFDebugMap creates CompileUnits without setting the the UserData to point to the relevant dwarf compile unit. I'll drop this patch and implement the thing I needed this for in D63005 differently. |