Skip to content

Ghidra is a software reverse engineering (SRE) framework

consistent naming of parameters between Ghidra and decompiler

caheckman4ed9f2f0ee50
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/database.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/database.cc
index ea01246477..9f1d4ad79a 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/database.cc
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/database.cc
@@ -2056,9 +2056,7 @@ string ScopeInternal::buildVariableName(const Address &addr,
s << "in_" << regname;
}
else if ((flags & Varnode::input)!=0) { // Regular parameter
- if (ct != (Datatype *)0)
- ct->printNameBase(s);
- s << "Parm" << dec << index;
+ s << "param_" << dec << index;
}
else if ((flags & Varnode::addrtied)!=0) {
if (ct != (Datatype *)0)
diff --git a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/RetypeVariableAction.java b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/RetypeVariableAction.java
index c1869ba2fd..b4744bfe23 100644
--- a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/RetypeVariableAction.java
+++ b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/RetypeVariableAction.java
@@ -129,13 +129,13 @@ public class RetypeVariableAction extends AbstractDecompilerAction {
boolean commitRequired = checkFullCommit(var, hfunction);
if (commitRequired) {
- int resp = OptionDialog.showOptionDialog(tool.getToolFrame(),
- "Parameter Commit Required",
- "Retyping a parameter requires all other parameters to be committed!\nContinue with retype?",
- "Continue");
- if (resp != OptionDialog.OPTION_ONE) {
- return;
- }
+// int resp = OptionDialog.showOptionDialog(tool.getToolFrame(),
+// "Parameter Commit Required",
+// "Retyping a parameter requires all other parameters to be committed!\nContinue with retype?",
+// "Continue");
+// if (resp != OptionDialog.OPTION_ONE) {
+// return;
+// }
exactSpot = null; // Don't try to split out if commit is required
}