Package ghidra.app.cmd.memory
Class AddUninitializedMemoryBlockCmd
java.lang.Object
ghidra.app.cmd.memory.AddUninitializedMemoryBlockCmd
- All Implemented Interfaces:
Command
Command for adding uninitialized memory blocks
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAddUninitializedMemoryBlockCmd
(String name, String comment, String source, Address start, long length, boolean read, boolean write, boolean execute, boolean isVolatile, boolean isOverlay) Create a new AddUninitializedMemoryBlockCmd -
Method Summary
Modifier and TypeMethodDescriptionboolean
applyTo
(DomainObject obj) Applies the command to the given domain object.protected MemoryBlock
createMemoryBlock
(Memory memory) getName()
Returns the name of this command.Returns the status message indicating the status of the command.
-
Field Details
-
message
-
name
-
comment
-
source
-
start
-
length
protected final long length -
read
protected final boolean read -
write
protected final boolean write -
execute
protected final boolean execute -
isVolatile
protected final boolean isVolatile -
isOverlay
protected final boolean isOverlay
-
-
Constructor Details
-
AddUninitializedMemoryBlockCmd
public AddUninitializedMemoryBlockCmd(String name, String comment, String source, Address start, long length, boolean read, boolean write, boolean execute, boolean isVolatile, boolean isOverlay) Create a new AddUninitializedMemoryBlockCmd- Parameters:
name
- the name for the new memory block.comment
- the comment for the blocksource
- indicates what is creating the blockstart
- the start address for the the blocklength
- the length of the new blockread
- sets the block's read permission flagwrite
- sets the block's write permission flagexecute
- sets the block's execute permission flagisVolatile
- sets the block's volatile flagisOverlay
- if true, the block will be created in a new overlay address space.
-
-
Method Details
-
createMemoryBlock
protected MemoryBlock createMemoryBlock(Memory memory) throws LockException, MemoryConflictException, AddressOverflowException -
getStatusMsg
Description copied from interface:Command
Returns the status message indicating the status of the command.- Specified by:
getStatusMsg
in interfaceCommand
- Returns:
- reason for failure, or null if the status of the command was successful
-
getName
Description copied from interface:Command
Returns the name of this command. -
applyTo
Description copied from interface:Command
Applies the command to the given domain object.
-