mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +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;
|
||||
}
|
||||
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)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue