Ghidra is a software reverse engineering (SRE) framework
Merge remote-tracking branch 'origin/GT-3116-dragonmacher-edit-data-type-action'
ghidra1e6cbefc70622
diff --cc Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/OverridePrototypeAction.javaindex a6644f1859,240fbbcca2..13dd530623--- a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/OverridePrototypeAction.java+++ b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/OverridePrototypeAction.java@@@ -33,9 -31,8 +31,10 @@@ import ghidra.program.model.listing.*import ghidra.program.model.pcode.*;import ghidra.util.Msg;import ghidra.util.UndefinedFunction;+import ghidra.util.exception.CancelledException;- public class OverridePrototypeAction extends DockingAction {+ public class OverridePrototypeAction extends AbstractDecompilerAction {++private final DecompilerController controller;private final PluginTool tool;@@@ -59,20 -57,14 +58,21 @@@@Overrideprotected void okCallback() {// only close the dialog if the user made valid changes- if (parseFunctionDefinition())- if (testResult()) {++ if (parseFunctionDefinition()) {close();+ }}- protected boolean testResult() {+ private boolean parseFunctionDefinition() {++ functionDefinition = null;- functionDefinition = parseSignature();+ try {+ functionDefinition = parseSignature();+ }+ catch (CancelledException e) {+ // ignore+ }if (functionDefinition == null) {return false;