Package ghidra.app.cmd.refs
Class AddMemRefsCmd
AddMemRefsCmd adds a set of memory references from a
specified address and opIndex to all code units identified by a
set of addresses.-
Constructor Summary
ConstructorsChangeConstructorDescriptionAddMemRefsCmd(Address fromAddr, AddressSetView toSet, RefType refType, SourceType source, int opIndex) Add memory references. -
Method Summary
ChangeModifier and TypeMethodDescriptionNEWbooleanapplyTo(Program program, TaskMonitor monitor) Method called when this command is to apply changes to the given domain object.REMOVEDbooleanapplyTo(DomainObject obj, TaskMonitor monitor) RemovedMethods inherited from class ghidra.framework.cmd.BackgroundCommand
applyTo, canCancel, dispose, getName, getStatusMsg, hasProgress, isModal, run, setStatusMsg, taskCompleted, toString
-
Constructor Details
-
AddMemRefsCmd
public AddMemRefsCmd(Address fromAddr, AddressSetView toSet, RefType refType, SourceType source, int opIndex) Add memory references.- Parameters:
fromAddr- reference sourcetoSet- set of addresses which make up reference destinations. Only those addresses on code where a code unit exists will be considered.refType- reference type to be applied.source- the source of the referenceopIndex- source operand index
-
-
Method Details
-
applyTo NEW
Description copied from class:BackgroundCommandMethod called when this command is to apply changes to the given domain object. A monitor is provided to display status information about the command as it executes in the background.- Specified by:
applyToin classBackgroundCommand<Program>- Parameters:
program- domain object that will be affected by the commandmonitor- monitor to show progress of the command- Returns:
- true if the command applied successfully
-