WIP
This commit is contained in:
@@ -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("}");
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user