Class DWARFDataTypeImporter
- java.lang.Object
-
- ghidra.app.util.bin.format.dwarf4.next.DWARFDataTypeImporter
-
public class DWARFDataTypeImporter extends java.lang.ObjectCreates GhidraDataTypes using information from DWARF debug entries. The caller is responsible for writing the resulting temporary DataType instances into the database.Create a new instance of this class for each
DIEAggregatedatatype that you wish to convert into a DataType.
-
-
Constructor Summary
Constructors Constructor Description DWARFDataTypeImporter(DWARFProgram prog, DWARFDataTypeManager dwarfDTM, DWARFImportOptions importOptions)Create a new data type importer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ghidra.app.util.bin.format.dwarf4.next.DWARFDataTypeImporter.DWARFDataTypegetDataType(DIEAggregate diea, ghidra.app.util.bin.format.dwarf4.next.DWARFDataTypeImporter.DWARFDataType defaultValue)Converts the specified DWARF debug entry into a GhidraDataType(wrapped in a simple holder object to also return associated metadata).ghidra.app.util.bin.format.dwarf4.next.DWARFDataTypeImporter.DWARFDataTypegetDDTByInstance(DataType dtInstance)
-
-
-
Constructor Detail
-
DWARFDataTypeImporter
public DWARFDataTypeImporter(DWARFProgram prog, DWARFDataTypeManager dwarfDTM, DWARFImportOptions importOptions)
Create a new data type importer.- Parameters:
prog-DWARFProgramthat is being importeddwarfDTM-DWARFDataTypeManagerhelperimportOptions-DWARFImportOptionscontrol optional features during import
-
-
Method Detail
-
getDDTByInstance
public ghidra.app.util.bin.format.dwarf4.next.DWARFDataTypeImporter.DWARFDataType getDDTByInstance(DataType dtInstance)
-
getDataType
public ghidra.app.util.bin.format.dwarf4.next.DWARFDataTypeImporter.DWARFDataType getDataType(DIEAggregate diea, ghidra.app.util.bin.format.dwarf4.next.DWARFDataTypeImporter.DWARFDataType defaultValue) throws java.io.IOException, DWARFExpressionException
Converts the specified DWARF debug entry into a GhidraDataType(wrapped in a simple holder object to also return associated metadata).- Parameters:
diea- DWARFDIEAggregateto convert into Ghidra DataType.defaultValue- value to return if the specified DIEA is null or there is a problem with the DWARF debug data.- Returns:
- a
DWARFDataTypeImporter.DWARFDataTypewrapper around the new GhidraDataType. - Throws:
java.io.IOExceptionDWARFExpressionException
-
-