Package ghidra.app.cmd.disassemble
Class MipsDisassembleCommand
java.lang.Object
ghidra.framework.cmd.BackgroundCommand<Program>
ghidra.app.cmd.disassemble.DisassembleCommand
ghidra.app.cmd.disassemble.MipsDisassembleCommand
Command object for performing Mips disassembly
-
Field Summary
Fields inherited from class ghidra.app.cmd.disassemble.DisassembleCommand
disassemblyPerformed, languageError, nonExecutableStart, startSet, unalignedStart, useDefaultRepeatPatternBehavior -
Constructor Summary
ConstructorsConstructorDescriptionMipsDisassembleCommand(Address start, AddressSetView restrictedSet, boolean mips16Mode) Constructor for MipsDisassembleCommand.MipsDisassembleCommand(AddressSetView startSet, AddressSetView restrictedSet, boolean mips16Mode) Constructor for MipsDisassembleCommand. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyTo(Program program, TaskMonitor monitor) Method called when this command is to apply changes to the given domain object.getName()Returns the name of this command.voidsetInitialContext(RegisterValue initialContextValue) Allows a specified initial context to be used at all start points.voidsetSeedContext(DisassemblerContextImpl seedContext) Allows the disassembler context to be seeded for the various disassembly start points which may be encountered using the future flow state of the specified seedContext.Methods inherited from class ghidra.app.cmd.disassemble.DisassembleCommand
doDisassembly, doDisassemblySeeds, enableCodeAnalysis, getDisassembledAddressSet, getStatusMsgMethods inherited from class ghidra.framework.cmd.BackgroundCommand
applyTo, canCancel, dispose, hasProgress, isModal, run, setStatusMsg, taskCompleted, toString
-
Constructor Details
-
MipsDisassembleCommand
public MipsDisassembleCommand(AddressSetView startSet, AddressSetView restrictedSet, boolean mips16Mode) Constructor for MipsDisassembleCommand.- Parameters:
startSet- set of addresses to be the start of a disassembly. The Command object will attempt to start a disassembly at each address in this set.restrictedSet- addresses that can be disassembled. a null set implies no restrictionsmips16Mode- pass true if the disassembling in mips16e Mode
-
MipsDisassembleCommand
Constructor for MipsDisassembleCommand.- Parameters:
start- address to be the start of a disassembly.restrictedSet- addresses that can be disassembled. a null set implies no restrictionsmips16Mode- pass true if the disassembling in mips16e Mode
-
-
Method Details
-
getName
Description copied from interface:CommandReturns the name of this command. -
setSeedContext
Description copied from class:DisassembleCommandAllows the disassembler context to be seeded for the various disassembly start points which may be encountered using the future flow state of the specified seedContext. Any initial context set via theDisassembleCommand.setInitialContext(RegisterValue)method will take precedence when combined with any seed values. The seedContext should remain unchanged while disassembler command is actively running.- Overrides:
setSeedContextin classDisassembleCommand- Parameters:
seedContext- seed context or null
-
setInitialContext
Description copied from class:DisassembleCommandAllows a specified initial context to be used at all start points. This value will take precedence when combined with any individual seed context values specified by theDisassembleCommand.setSeedContext(DisassemblerContextImpl)method. The defaultSeedContext should remain unchanged while disassembler command is actively running.- Overrides:
setInitialContextin classDisassembleCommand- Parameters:
initialContextValue- the initial context value to set or null to clear it
-
applyTo
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.- Overrides:
applyToin classDisassembleCommand- 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
-