Package ghidra.app.cmd.refs
Class AddStackRefCmd
java.lang.Object
ghidra.app.cmd.refs.AddStackRefCmd
Command class for adding stack references to a program.
-
Constructor Summary
ConstructorsConstructorDescriptionAddStackRefCmd(Address fromAddr, int opIndex, int stackOffset, RefType refType, SourceType source) Constructs a new command for adding a stack reference.AddStackRefCmd(Address fromAddr, int opIndex, int stackOffset, SourceType source) Constructs a new command for adding a stack reference. -
Method Summary
-
Constructor Details
-
AddStackRefCmd
Constructs a new command for adding a stack reference.- Parameters:
fromAddr- "from" address within a functionopIndex- operand indexstackOffset- stack offset of the referencesource- the source of this reference
-
AddStackRefCmd
public AddStackRefCmd(Address fromAddr, int opIndex, int stackOffset, RefType refType, SourceType source) Constructs a new command for adding a stack reference.- Parameters:
fromAddr- "from" address within a functionopIndex- operand indexstackOffset- stack offset of the referencerefType- reference type (e.g., STACK_READ or STACK_WRITE)source- the source of this reference
-
-
Method Details
-
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
-
getName
Description copied from interface:CommandReturns the name of this command.
-