mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-0 integration test change to analyzeHeadless
This commit is contained in:
parent
47e207ab3e
commit
654d65b1c9
1 changed files with 10 additions and 4 deletions
|
@ -25,8 +25,7 @@ import generic.stl.Pair;
|
|||
import ghidra.GhidraApplicationLayout;
|
||||
import ghidra.GhidraLaunchable;
|
||||
import ghidra.app.util.opinion.Loader;
|
||||
import ghidra.framework.OperatingSystem;
|
||||
import ghidra.framework.Platform;
|
||||
import ghidra.framework.*;
|
||||
import ghidra.framework.model.DomainFolder;
|
||||
import ghidra.framework.protocol.ghidra.Handler;
|
||||
import ghidra.util.Msg;
|
||||
|
@ -107,8 +106,15 @@ public class AnalyzeHeadless implements GhidraLaunchable {
|
|||
}
|
||||
|
||||
// Instantiate new headless analyzer and parse options.
|
||||
HeadlessAnalyzer analyzer =
|
||||
HeadlessAnalyzer.getLoggableInstance(logFile, scriptLogFile, true);
|
||||
// NOTE: The application may already be initialized if this is being called
|
||||
// from an integration test
|
||||
HeadlessAnalyzer analyzer = null;
|
||||
if (Application.isInitialized()) {
|
||||
analyzer = HeadlessAnalyzer.getInstance();
|
||||
}
|
||||
else {
|
||||
analyzer = HeadlessAnalyzer.getLoggableInstance(logFile, scriptLogFile, true);
|
||||
}
|
||||
HeadlessOptions options = analyzer.getOptions();
|
||||
parseOptions(options, args, optionStartIndex, ghidraURL, filesToImport);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue