Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ghidra/scripts/GhidraCliBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import ghidra.util.exception.CancelledException;
import generic.jar.ResourceFile;
import ghidra.app.decompiler.DecompInterface;
import ghidra.app.decompiler.DecompileOptions;
import ghidra.app.decompiler.DecompileResults;
import ghidra.app.cmd.function.ApplyFunctionSignatureCmd;
import ghidra.program.model.pcode.HighFunction;
Expand Down Expand Up @@ -1489,6 +1490,7 @@ private JsonObject handleDecompile(JsonObject args) {
}

DecompInterface decompiler = new DecompInterface();
decompiler.setOptions(new DecompileOptions());
try {
decompiler.openProgram(currentProgram);

Expand Down Expand Up @@ -3890,6 +3892,7 @@ private JsonObject handleSetVarType(JsonObject args) {
if (newType == null) return errorResult("Type not found: " + typeName);

DecompInterface decompiler = new DecompInterface();
decompiler.setOptions(new DecompileOptions());
try {
decompiler.openProgram(currentProgram);
TaskMonitor mon = monitor;
Expand Down Expand Up @@ -4419,6 +4422,7 @@ private JsonObject handleDiffFunctions(JsonObject args) {
if (func2 == null) return errorResult(buildFunctionTargetHint(func2Target));

DecompInterface decompiler = new DecompInterface();
decompiler.setOptions(new DecompileOptions());
try {
decompiler.openProgram(currentProgram);
TaskMonitor mon = monitor;
Expand Down