Package ghidra.app.cmd.analysis
Class SharedReturnAnalysisCmd
Identifies functions to which Jump references exist and converts
the associated branching instruction flow to a CALL-RETURN
-
Constructor Summary
ConstructorDescriptionSharedReturnAnalysisCmd
(AddressSetView set, boolean assumeContiguousFunctions, boolean considerConditionalBranches) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
applyTo
(Program program, 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, run, setStatusMsg, taskCompleted, toString
-
Constructor Details
-
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 Details
-
applyTo
Description copied from class:BackgroundCommand
Method 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:
applyTo
in 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
-