Package ghidra.app.cmd.function
Class SetVariableDataTypeCmd
java.lang.Object
ghidra.app.cmd.function.SetVariableDataTypeCmd
Command to set the datatype on a stack variable.
-
Constructor Summary
ConstructorsConstructorDescriptionSetVariableDataTypeCmd(Address fnEntry, String varName, DataType dataType, boolean align, boolean force, SourceType source) Constructs a new command for setting the datatype on a stack/reg variableSetVariableDataTypeCmd(Address fnEntry, String varName, DataType dataType, SourceType source) Constructs a new command for setting the datatype on a stack/reg variable.SetVariableDataTypeCmd(Variable var, DataType dataType, SourceType source) Constructs a new command for setting the datatype on a stack/reg variable. -
Method Summary
-
Constructor Details
-
SetVariableDataTypeCmd
Constructs a new command for setting the datatype on a stack/reg variable. Conflicting stack variables will be removed.- Parameters:
var- the variable for which to set the datatype.dataType- the datatype to apply to the stack variable.source- signature source
-
SetVariableDataTypeCmd
public SetVariableDataTypeCmd(Address fnEntry, String varName, DataType dataType, SourceType source) Constructs a new command for setting the datatype on a stack/reg variable. Conflicting stack variables will be removed.- Parameters:
fnEntry-varName-dataType-source- signature source
-
SetVariableDataTypeCmd
public SetVariableDataTypeCmd(Address fnEntry, String varName, DataType dataType, boolean align, boolean force, SourceType source) Constructs a new command for setting the datatype on a stack/reg variable- Parameters:
fnEntry-varName-dataType-align- maintain proper alignment/justification if supported by implementation (ignored for non-stack variables). If false and this is a stack variable, the current stack address/offset will not change. If true, the affect is implementation dependent since alignment can not be performed without access to a compiler specification.force- overwrite conflicting stack variablessource- signature source
-
-
Method Details
-
getName
Description copied from interface:CommandReturns the name of this command. -
applyTo
Description copied from interface:CommandApplies the command to the given domain object. -
getStatusMsg
Description copied from interface:CommandReturns the status message indicating the status of the command.- Specified by:
getStatusMsgin interfaceCommand<Program>- Returns:
- reason for failure, or null if the status of the command was successful
- See Also:
-