consistent naming of parameters between Ghidra and decompiler

This commit is contained in:
caheckman 2019-09-18 15:47:23 -04:00
parent 23cb2634ab
commit 4ed9f2f0ee
2 changed files with 8 additions and 10 deletions

View file

@ -2056,9 +2056,7 @@ string ScopeInternal::buildVariableName(const Address &addr,
s << "in_" << regname; s << "in_" << regname;
} }
else if ((flags & Varnode::input)!=0) { // Regular parameter else if ((flags & Varnode::input)!=0) { // Regular parameter
if (ct != (Datatype *)0) s << "param_" << dec << index;
ct->printNameBase(s);
s << "Parm" << dec << index;
} }
else if ((flags & Varnode::addrtied)!=0) { else if ((flags & Varnode::addrtied)!=0) {
if (ct != (Datatype *)0) if (ct != (Datatype *)0)

View file

@ -129,13 +129,13 @@ public class RetypeVariableAction extends AbstractDecompilerAction {
boolean commitRequired = checkFullCommit(var, hfunction); boolean commitRequired = checkFullCommit(var, hfunction);
if (commitRequired) { if (commitRequired) {
int resp = OptionDialog.showOptionDialog(tool.getToolFrame(), // int resp = OptionDialog.showOptionDialog(tool.getToolFrame(),
"Parameter Commit Required", // "Parameter Commit Required",
"Retyping a parameter requires all other parameters to be committed!\nContinue with retype?", // "Retyping a parameter requires all other parameters to be committed!\nContinue with retype?",
"Continue"); // "Continue");
if (resp != OptionDialog.OPTION_ONE) { // if (resp != OptionDialog.OPTION_ONE) {
return; // return;
} // }
exactSpot = null; // Don't try to split out if commit is required exactSpot = null; // Don't try to split out if commit is required
} }