mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
consistent naming of parameters between Ghidra and decompiler
This commit is contained in:
parent
23cb2634ab
commit
4ed9f2f0ee
2 changed files with 8 additions and 10 deletions
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue