Package ghidra.app.cmd.function
Class UpdateFunctionCommand
java.lang.Object
ghidra.app.cmd.function.UpdateFunctionCommand
A command to update
Function signature in its entirety including optional
custom storage.
If the function does not rely on custom storage the use of ApplyFunctionSignatureCmd
may be more appropriate.-
Constructor Summary
ConstructorsConstructorDescriptionUpdateFunctionCommand(Function function, Function.FunctionUpdateType updateType, String callingConvention, Variable returnVar, List<? extends Variable> params, SourceType source, boolean force) Construct command to update aFunctionsignature including optional custom storage. -
Method Summary
-
Constructor Details
-
UpdateFunctionCommand
public UpdateFunctionCommand(Function function, Function.FunctionUpdateType updateType, String callingConvention, Variable returnVar, List<? extends Variable> params, SourceType source, boolean force) Construct command to update aFunctionsignature including optional custom storage.VariableStorage.UNASSIGNED_STORAGEshould be specified when not using custom storage or storage is unknown.- Parameters:
function- function to be modifiedupdateType- indicates how function should be updated including the use of custom or non-custom storage.callingConvention- a valid calling convention name or null if no change is required. Calling conventions are limited to "default", "unknown" or those defined by the associated compiler specification.returnVar- function return type and storage.params- function parameter list (specifics depend on specifiedupdateType).source- the source of these parameters which will be applied to the parameter symbols and overall function signature source. If parameter names are null, or a default name, aSourceType.DEFAULTwill be applied to the corresponding parameter symbol.force- if true any conflicting local parameters will be removed
-
-
Method Details
-
applyTo
Description copied from interface:CommandApplies the command to the given domain object. -
getStatusMsg
Description copied from interface:CommandReturns the status message indicating the status of the command.- Specified by:
getStatusMsgin interfaceCommand<Program>- Returns:
- reason for failure, or null if the status of the command was successful
-
getName
Description copied from interface:CommandReturns the name of this command.
-