Class SetVariableDataTypeCmd

java.lang.Object
ghidra.app.cmd.function.SetVariableDataTypeCmd
All Implemented Interfaces:
Command<Program>

public class SetVariableDataTypeCmd extends Object implements Command<Program>
Command to set the datatype on a stack variable.
  • Constructor Details

    • SetVariableDataTypeCmd

      public SetVariableDataTypeCmd(Variable var, DataType dataType, SourceType source)
      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 variables
      source - signature source
  • Method Details