Skip to content

Ghidra is a software reverse engineering (SRE) framework

GT-3431 - Added a setter method to the Decompiler's options

dragonmacher4c4272a33724
diff --git a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileOptions.java b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileOptions.java
index 1e51b4ace3..d7ff15d2c9 100644
--- a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileOptions.java
+++ b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileOptions.java
@@ -39,7 +39,7 @@ import ghidra.util.SystemUtilities;
*
*
*/
-public class DecompileOptions { //
+public class DecompileOptions {
private final static String PREDICATE_OPTIONSTRING = "Analysis.Simplify predication";
private final static String PREDICATE_OPTIONDESCRIPTION =
"If set, multiple conditionally executed instructions " +
@@ -625,6 +625,10 @@ public class DecompileOptions { //
return maxwidth;
}
+ public void setMaxWidth(int maxwidth) {
+ this.maxwidth = maxwidth;
+ }
+
public Color getKeywordColor() {
return keywordColor;
}