Class MemoryBlockDefinition

java.lang.Object
ghidra.app.plugin.processors.generic.MemoryBlockDefinition

public class MemoryBlockDefinition extends Object
MemoryBlockDefinition provides a default memory block specification.
  • Constructor Details

  • Method Details

    • getBlockName NEW

      public String getBlockName()
      Returns memory block name.
      Returns:
      memory block name
    • fixupBlock NEW

      public MemoryBlock fixupBlock(ProgramDB program) throws LockException, MemoryBlockException
      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 access
      MemoryBlockException - if failed to create or fixup default memory block
    • createBlock MODIFIED

      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, 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 program
      AddressOverflowException - if memory space constraints are violated by block specification
      InvalidAddressException - if address defined by this block specification is invalid for the specified program. May also indicate an improperly formatted address attribute.
    • toString

      public String toString()
      Overrides:
      toString in class Object