mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 22:45:41 +08:00
GP-1 log when headless analyzer starts to execute a script
This commit is contained in:
@@ -883,6 +883,14 @@ public class HeadlessAnalyzer {
|
|||||||
scriptName = scriptPair.first;
|
scriptName = scriptPair.first;
|
||||||
String[] scriptArgs = scriptPair.second;
|
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
|
// For .class files, there is no ResourceFile mapping. Need to load from the
|
||||||
// stored 'classLoaderForDotClassScripts'
|
// stored 'classLoaderForDotClassScripts'
|
||||||
if (scriptName.endsWith(".class")) {
|
if (scriptName.endsWith(".class")) {
|
||||||
@@ -1601,8 +1609,8 @@ public class HeadlessAnalyzer {
|
|||||||
if (!loaded.check(Program::isTemporary)) {
|
if (!loaded.check(Program::isTemporary)) {
|
||||||
try {
|
try {
|
||||||
DomainFile domainFile = loaded.save(TaskMonitor.DUMMY);
|
DomainFile domainFile = loaded.save(TaskMonitor.DUMMY);
|
||||||
Msg.info(this, String.format("REPORT: Save succeeded for: %s (%s)",
|
Msg.info(this, String.format("REPORT: Save succeeded for: %s (%s)", loaded,
|
||||||
loaded, domainFile));
|
domainFile));
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
Msg.info(this, "REPORT: Save failed for: " + loaded);
|
Msg.info(this, "REPORT: Save failed for: " + loaded);
|
||||||
|
|||||||
Reference in New Issue
Block a user