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;
}
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)

View file

@ -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
}