This is an archive of the discontinued LLVM Phabricator instance.

[lldb/DWARF] Add is_dwo member to DWARFUnit
ClosedPublic

Authored by labath on Dec 20 2019, 4:56 AM.

Details

Summary

A skeleton unit can easily be detected by checking the m_dwo_symbol_file
member, but we cannot tell a split unit from a normal unit from the
"inside", which is sometimes useful.

This patch adds a m_is_dwo member to enable this, and align the code
with llvm::DWARFUnit. Right now it's only used to avoid creating a split
unit inside another split unit (which removes one override from
SymbolFileDWARFDwo and brings us a step closer to deleting it), but my
main motivation is fixing the handling of location lists in mixed v4&v5
files. This comes in a separate patch.

Diff Detail

Event Timeline

labath created this revision.Dec 20 2019, 4:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2019, 4:56 AM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 9 2020, 4:18 AM
This revision was automatically updated to reflect the committed changes.