New DWARFCompileUnit::GetMainCU() and DWARFDIE::GetMainDWARF() need to locate original symbol file when they are place in a DWZ common file. For example for UID context. One needs to access both symbol files as the one where the DIE really comes from still needs to be used for .debug_abbrev, .debug_str and .debug_line.
Probably more such cases need to be caught, they get indicated by later implemented DWARFDebugInfo::DWZRedirect:
"Internal LLDB error - unable to resolve offset 0x%8.8" PRIx32 " as DWZ common file has been passed, change the callers to use:" " DWARFDIE::GetDWARF() -> DWARFDIE::GetMainDWARF()",
All DWZ patches are also applied in: git clone -b dwz git://git.jankratochvil.net/lldb
Just fix the DIERef constructor to not use 0 for the cu_offset?