This commit is contained in:
2024-09-25 02:19:37 +08:00
parent a2bfc78e8d
commit 47d35aa3a2
95 changed files with 1208 additions and 288 deletions

View File

@@ -296,7 +296,7 @@ public class FunctionDumper {
writer2.println("extern \"C\" " + externalFunction.getSignature().getPrototypeString(false) + " {");
writer2.println(" // TODO: Implement this function");
writer2
.println(" throw std::runtime_error(\"Function not implemented: " + externalFunction.getName() + "\");");
.println(" throw GHStubException(\"Function not implemented: " + externalFunction.getName() + "\");");
writer2.println("}");
}

View File

@@ -22,7 +22,7 @@ public class TypeDumper {
public TypeDumper(GhidraScript script) {
this.script = script;
currentProgram = script.getCurrentProgram();
RecompileConfig.INSTANCE = new RecompileConfig(script);
RecompileConfig.INSTANCE = new RecompileConfig(script);
}
public void run() throws Exception {
@@ -50,8 +50,9 @@ public class TypeDumper {
if (dt instanceof Structure || dt instanceof TypedefDataType || dt instanceof EnumDataType) {
if (typeBlacklist.contains(dt.getDisplayName()))
continue;
// println("Adding: " + dt.getDisplayName() + " - " +
// dt.getClass().getSimpleName());
script.println("Adding: " + dt.getDisplayName() + " - " +
dt.getClass().getSimpleName());
filteredTypes.add(dt);
}
}