This commit is contained in:
2024-09-26 03:12:43 +08:00
parent 7fab525f42
commit 4b26993891
31 changed files with 1525 additions and 153 deletions

View File

@@ -128,6 +128,9 @@ public class GlobalDumper {
String escapeCString(String str) {
str = str.replace("\\", "\\\\");
str = str.replace("\"", "\\\"");
str = str.replace("\n", "\\n");
str = str.replace("\r", "\\r");
str = str.replace("\t", "\\t");
return str;
}

View File

@@ -52,7 +52,6 @@ public class PCallTracer {
Address callAddr = target.getAddress();
Function calledFunction = script.getFunctionAt(callAddr);
if (calledFunction == null) {
script.println("PCallTracer, called function not found: " + op.toString() + " - "
+ highFunction.getFunction().getName());
continue;
@@ -69,7 +68,7 @@ public class PCallTracer {
if (!visited.contains(function.getEntryPoint())) {
visited.add(function.getEntryPoint());
if (trace) {
// script.println("PCallTracer, visiting " + function.getName() + " (depth:" + depth + ")");
script.println("PCallTracer, visiting " + function.getName() + " (depth:" + depth + ")");
}
DecompileResults decompRes = decomp.getOrInsert(function);
visit(decompRes.getHighFunction(), depth);