GP-1 log when headless analyzer starts to execute a script

This commit is contained in:
ghidra1
2025-12-01 15:42:15 -05:00
parent 9499199f83
commit ed4db710cf

View File

@@ -883,6 +883,14 @@ public class HeadlessAnalyzer {
scriptName = scriptPair.first;
String[] scriptArgs = scriptPair.second;
StringBuilder buf = new StringBuilder();
for (String arg : scriptArgs) {
buf.append("'");
buf.append(arg);
buf.append("' ");
}
Msg.info(this, "REPORT: Execute script: " + scriptName + " " + buf.toString());
// For .class files, there is no ResourceFile mapping. Need to load from the
// stored 'classLoaderForDotClassScripts'
if (scriptName.endsWith(".class")) {
@@ -1601,8 +1609,8 @@ public class HeadlessAnalyzer {
if (!loaded.check(Program::isTemporary)) {
try {
DomainFile domainFile = loaded.save(TaskMonitor.DUMMY);
Msg.info(this, String.format("REPORT: Save succeeded for: %s (%s)",
loaded, domainFile));
Msg.info(this, String.format("REPORT: Save succeeded for: %s (%s)", loaded,
domainFile));
}
catch (IOException e) {
Msg.info(this, "REPORT: Save failed for: " + loaded);