Package ghidra.app.cmd.analysis
Class SharedReturnAnalysisCmd
- java.lang.Object
-
- ghidra.framework.cmd.BackgroundCommand
-
- ghidra.app.cmd.analysis.SharedReturnAnalysisCmd
-
- All Implemented Interfaces:
Command
public class SharedReturnAnalysisCmd extends BackgroundCommand
Identifies functions to which Jump references exist and converts the associated branching instruction flow to a CALL-RETURN
-
-
Constructor Summary
Constructors Constructor Description SharedReturnAnalysisCmd(AddressSetView set, boolean assumeContiguousFunctions, boolean considerConditionalBranches)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyTo(DomainObject obj, TaskMonitor monitor)Method called when this command is to apply changes to the given domain object.-
Methods inherited from class ghidra.framework.cmd.BackgroundCommand
applyTo, canCancel, dispose, getName, getStatusMsg, hasProgress, isModal, setStatusMsg, taskCompleted, toString
-
-
-
-
Constructor Detail
-
SharedReturnAnalysisCmd
public SharedReturnAnalysisCmd(AddressSetView set, boolean assumeContiguousFunctions, boolean considerConditionalBranches)
Constructor- Parameters:
set- set of addresses over which destination functions will be examined for Jump reference to those functions.assumeContiguousFunctions- if true it will be assumed that any unconditional jump over another function will trigger a call-return override and the creation ofconsiderConditionalBranches- if true conditional jumps can also be considered for jumping to another function as a shared return. a function at the destination.
-
-
Method Detail
-
applyTo
public boolean applyTo(DomainObject obj, TaskMonitor monitor)
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- Parameters:
obj- domain object that will be affected by the commandmonitor- monitor to show progress of the command- Returns:
- true if the command applied successfully
-
-