Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ghidra/import_df_structures.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public AnalysisMode getScriptAnalysisMode() {
private DataType dtUint8, dtUint16, dtUint32, dtUint64;
private DataType dtInt8, dtInt16, dtInt32, dtInt64;
private DataType dtInt, dtLong, dtULong, dtSizeT;
private DataType dtString, dtFStream, dtMutex, dtConditionVariable, dtFuture, dtFsPath, dtVectorBool, dtDeque;
private DataType dtString, dtFStream, dtMutex, dtConditionVariable, dtFuture, dtFsPath, dtFsFiletime, dtVectorBool, dtDeque;
private Structure classTypeInfo, subClassTypeInfo, vmiClassTypeInfo;
private Address classVTable, subClassVTable, vmiClassVTable;
private int baseClassPadding;
Expand Down Expand Up @@ -454,6 +454,8 @@ private void createStdDataTypes() throws Exception {
AbstractIntegerDataType.getUnsignedDataType(currentProgram.getDefaultPointerSize(), dtm));
this.dtInt = createDataType(dtcStd, "int", AbstractIntegerDataType.getSignedDataType(4, dtm));

var fsFiletimeDataType = createDataType(dtcStd, "fsFiletime", AbstractIntegerDataType.getUnsignedDataType(8, dtm));

var stringDataType = new StructureDataType("string", 0);
var bitVecDataType = new StructureDataType("vector<bool>", 0);
var fStreamDataType = new StructureDataType("fstream", 0);
Expand Down Expand Up @@ -628,6 +630,7 @@ private void createStdDataTypes() throws Exception {
this.dtConditionVariable = createDataType(dtcStd, conditionVariableDataType);
this.dtFuture = createDataType(dtcStd, futureDataType);
this.dtFsPath = createDataType(dtcStd, fsPathDataType);
this.dtFsFiletime = createDataType(dtcStd, fsFiletimeDataType);
this.dtString = createDataType(dtcStd, stringDataType);
this.dtVectorBool = createDataType(dtcStd, bitVecDataType);
this.dtDeque = createDataType(dtcStd, dequeDataType);
Expand Down Expand Up @@ -1541,6 +1544,8 @@ private DataType getDataType(TypeDef.Field f) throws Exception {
return dtFuture;
case "stl-fs-path":
return dtFsPath;
case "stl-fs-filetime":
return dtFsFiletime;
}
break;
case "container":
Expand Down