Class PCodeTestAbstractControlBlock

  • Direct Known Subclasses:
    PCodeTestControlBlock, PCodeTestGroupControlBlock

    public abstract class PCodeTestAbstractControlBlock
    extends java.lang.Object
    PCodeTestAbstractControlBlock data is models the general capabilities of the TestInfo data structure which is used for different puposes as handled by extensions of this class.
    • Field Detail

      • program

        protected final Program program
      • pointerSize

        protected final int pointerSize
      • infoStructAddr

        protected final Address infoStructAddr
      • infoProgramStruct

        protected final Structure infoProgramStruct
    • Method Detail

      • getInfoStructureAddress

        public Address getInfoStructureAddress()
      • getNumberFunctions

        public int getNumberFunctions()
      • readDefinedDataPointer

        protected Address readDefinedDataPointer​(Address addr)
        Check for a Data pointer at the specified address and return the referenced address.
        Parameters:
        addr - address of stored pointer
        Returns:
        pointer referenced address or null if no pointer found
      • readCodePointer

        protected Address readCodePointer​(MemBuffer buffer,
                                          int bufferOffset,
                                          boolean updateReference)
      • readDataPointer

        protected Address readDataPointer​(MemBuffer buffer,
                                          int bufferOffset,
                                          boolean updateReference)
      • applyU4Data

        protected void applyU4Data​(Address addr)
      • getStructureComponent

        protected int getStructureComponent​(Structure testInfoStruct,
                                            java.lang.String fieldName)
      • readControlBlock

        protected void readControlBlock​(boolean applyStruct)
                                 throws ghidra.test.processors.support.PCodeTestAbstractControlBlock.InvalidControlBlockException,
                                        CodeUnitInsertionException
        Throws:
        ghidra.test.processors.support.PCodeTestAbstractControlBlock.InvalidControlBlockException
        CodeUnitInsertionException