Package ghidra.app.cmd.refs
Class AddStackRefCmd
java.lang.Object
ghidra.app.cmd.refs.AddStackRefCmd
- All Implemented Interfaces:
Command
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
Modifier and TypeMethodDescriptionboolean
applyTo
(DomainObject obj) Applies the command to the given domain object.getName()
Returns the name of this command.Returns the status message indicating the status of the command.
-
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
- Returns:
- reason for failure, or null if the status of the command was successful
- See Also:
-
getName
Description copied from interface:Command
Returns the name of this command.
-