mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 10:45:01 +08:00
Handle DWARF compilation units without a compile unit DIE
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user