Class MemoryBlockDefinition
java.lang.Object
ghidra.app.plugin.processors.generic.MemoryBlockDefinition
MemoryBlockDefinition provides a default memory block specification.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBlock(Program program) Create memory block within specified program based upon this block specification.fixupBlock(ProgramDB program) Create or fixup existing block found within specified program.Returns memory block name.toString()
-
Constructor Details
-
MemoryBlockDefinition
- Throws:
XmlAttributeException
-
-
Method Details
-
getBlockName
Returns memory block name.- Returns:
- memory block name
-
fixupBlock
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
public MemoryBlock createBlock(Program program) throws LockException, MemoryConflictException, AddressOverflowException, InvalidAddressException Create 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
-