Class MemoryBlockDefinition
java.lang.Object
ghidra.app.plugin.processors.generic.MemoryBlockDefinition
MemoryBlockDefinition provides a default memory block specification.-
Constructor Summary
Constructors -
Method Summary
ChangeModifier and TypeMethodDescriptionMODIFIEDcreateBlock(Program program) Create memory block within specified program based upon this block specification.NEWfixupBlock(ProgramDB program) Create or fixup existing block found within specified program.NEWReturns memory block name.toString()
-
Constructor Details
-
MemoryBlockDefinition
- Throws:
XmlAttributeException
-
-
Method Details
-
getBlockName NEW
Returns memory block name.- Returns:
- memory block name
-
fixupBlock NEW
Create or fixup existing block found within specified program.- Parameters:
program- target program- Returns:
- new or adjusted memory block
- Throws:
LockException- if program does not have exclusive accessMemoryBlockException- if failed to create or fixup default memory block
-
createBlock MODIFIED
public MemoryBlock createBlock(Program program) throws LockException, MemoryConflictException, AddressOverflowException, InvalidAddressException return type: void → MemoryBlock-void createBlock(ghidra.program.model.listing.Program program) throws LockException, MemoryConflictException, AddressOverflowException, InvalidAddressException+ghidra.program.model.mem.MemoryBlock createBlock(ghidra.program.model.listing.Program program) throws LockException, MemoryConflictException, AddressOverflowException, InvalidAddressExceptionCreate memory block within specified program based upon this block specification.- Parameters:
program- target program- Returns:
- newly created memory block
- Throws:
LockException- if program does not have exclusive access required when adding memory blocks.MemoryConflictException- if this specification conflicts with an existing memory block in programAddressOverflowException- if memory space constraints are violated by block specificationInvalidAddressException- if address defined by this block specification is invalid for the specified program. May also indicate an improperly formatted address attribute.
-
toString
-