Handle DWARF compilation units without a compile unit DIE

This commit is contained in:
FergoFrog
2019-06-15 11:55:15 +10:00
parent 0e83fdbe70
commit ed4019fcbe
@@ -167,10 +167,10 @@ public class DWARFCompilationUnit {
new DWARFCompilationUnit(dwarfProgram, startOffset, endOffset, length, format, version,
abbreviationOffset, pointerSize, cuNumber, firstDIEOffset, abbrMap);
DebugInfoEntry compileUnitDIE =
DebugInfoEntry.read(debugInfoBR, cu, dwarfProgram.getAttributeFactory());
try {
DebugInfoEntry compileUnitDIE =
DebugInfoEntry.read(debugInfoBR, cu, dwarfProgram.getAttributeFactory());
DWARFCompileUnit compUnit = DWARFCompileUnit.read(
DIEAggregate.createSingle(compileUnitDIE), dwarfProgram.getDebugLine());
cu.setCompileUnit(compUnit);