mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-2114 golang import / analyzer
This commit is contained in:
parent
f862cdd93d
commit
87c16f9cd0
125 changed files with 12264 additions and 1492 deletions
|
@ -57,7 +57,6 @@
|
|||
|
||||
import ghidra.app.script.GhidraScript;
|
||||
import ghidra.app.util.bin.format.dwarf4.next.*;
|
||||
import ghidra.program.model.data.BuiltInDataTypeManager;
|
||||
|
||||
public class DWARF_ExtractorScript extends GhidraScript {
|
||||
|
||||
|
@ -70,8 +69,7 @@ public class DWARF_ExtractorScript extends GhidraScript {
|
|||
DWARFImportOptions importOptions = new DWARFImportOptions();
|
||||
importOptions.setImportLimitDIECount(Integer.MAX_VALUE);
|
||||
try (DWARFProgram dwarfProg = new DWARFProgram(currentProgram, importOptions, monitor)) {
|
||||
BuiltInDataTypeManager dtms = BuiltInDataTypeManager.getDataTypeManager();
|
||||
DWARFParser dp = new DWARFParser(dwarfProg, dtms, monitor);
|
||||
DWARFParser dp = new DWARFParser(dwarfProg, monitor);
|
||||
DWARFImportSummary importSummary = dp.parse();
|
||||
importSummary.logSummaryResults();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue