Package ghidra.app.cmd.disassemble
Class PowerPCDisassembleCommand
- java.lang.Object
-
- ghidra.framework.cmd.BackgroundCommand
-
- ghidra.app.cmd.disassemble.DisassembleCommand
-
- ghidra.app.cmd.disassemble.PowerPCDisassembleCommand
-
- All Implemented Interfaces:
Command
public class PowerPCDisassembleCommand extends DisassembleCommand
Command object for performing PPC disassembly when VLE instructions are supported.
-
-
Field Summary
-
Fields inherited from class ghidra.app.cmd.disassemble.DisassembleCommand
disassemblyPerformed, nonExecutableStart, startSet, unalignedStart, useDefaultRepeatPatternBehavior
-
-
Constructor Summary
Constructors Constructor Description PowerPCDisassembleCommand(Address start, AddressSetView restrictedSet, boolean vleMode)
Constructor for PowerPCDisassembleCommand.PowerPCDisassembleCommand(AddressSetView startSet, AddressSetView restrictedSet, boolean vleMode)
Constructor for PowerPCDisassembleCommand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applyTo(DomainObject obj, TaskMonitor monitor)
Method called when this command is to apply changes to the given domain object.java.lang.String
getName()
Returns the name of this command.void
setInitialContext(RegisterValue initialContextValue)
Allows a specified initial context to be used at all start points.void
setSeedContext(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, enableCodeAnalysis, getDisassembledAddressSet, getStatusMsg
-
Methods inherited from class ghidra.framework.cmd.BackgroundCommand
applyTo, canCancel, dispose, hasProgress, isModal, setStatusMsg, taskCompleted, toString
-
-
-
-
Constructor Detail
-
PowerPCDisassembleCommand
public PowerPCDisassembleCommand(AddressSetView startSet, AddressSetView restrictedSet, boolean vleMode)
Constructor for PowerPCDisassembleCommand.- 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 restrictionsvleMode
- pass true if the disassembling in PowerISA VLE Mode, otherwise normal disassembly will be performed.
-
PowerPCDisassembleCommand
public PowerPCDisassembleCommand(Address start, AddressSetView restrictedSet, boolean vleMode)
Constructor for PowerPCDisassembleCommand.- 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 restrictionsvleMode
- pass true if the disassembling in PowerISA VLE Mode, otherwise normal disassembly will be performed.
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:Command
Returns the name of this command.- Specified by:
getName
in interfaceCommand
- Overrides:
getName
in classBackgroundCommand
- Returns:
- the name of this command
- See Also:
Command.getName()
-
setSeedContext
public void setSeedContext(DisassemblerContextImpl seedContext)
Description copied from class:DisassembleCommand
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. 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:
setSeedContext
in classDisassembleCommand
- Parameters:
seedContext
- seed context or null
-
setInitialContext
public void setInitialContext(RegisterValue initialContextValue)
Description copied from class:DisassembleCommand
Allows 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:
setInitialContext
in classDisassembleCommand
-
applyTo
public boolean applyTo(DomainObject obj, TaskMonitor monitor)
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.- Overrides:
applyTo
in classDisassembleCommand
- 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
- See Also:
BackgroundCommand.applyTo(ghidra.framework.model.DomainObject, ghidra.util.task.TaskMonitor)
-
-