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
ConstructorDescriptionAddStackRefCmd
(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:Command
Applies the command to the given domain object. -
getStatusMsg
Description copied from interface:Command
Returns the status message indicating the status of the command.- Specified by:
getStatusMsg
in interfaceCommand<Program>
- Returns:
- reason for failure, or null if the status of the command was successful
-
getName
Description copied from interface:Command
Returns the name of this command.
-