Package ghidra.test.processors.support
Class PCodeTestControlBlock
- java.lang.Object
-
- ghidra.test.processors.support.PCodeTestAbstractControlBlock
-
- ghidra.test.processors.support.PCodeTestControlBlock
-
public class PCodeTestControlBlock extends PCodeTestAbstractControlBlock
PCodeTestControlBlock
data is read from each binary test file and identified by the MAIN_CONTROL_BLOCK_MAGIC 64-bit character field value at the start of the data structure. Only one instance of this should exist within the binary.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ghidra.test.processors.support.PCodeTestAbstractControlBlock
PCodeTestAbstractControlBlock.FunctionInfo
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
cachedProgramPath
PCodeTestFile
testFile
-
Fields inherited from class ghidra.test.processors.support.PCodeTestAbstractControlBlock
codeSpace, dataSpace, infoProgramStruct, infoStructAddr, pointerSize, program
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Address
getBreakOnDoneAddress()
Address
getBreakOnErrorAddress()
Address
getBreakOnPassAddress()
Address
getPrintfBufferAddress()
Address
getSprintf5Address()
java.util.List<PCodeTestGroup>
getTestGroups()
PCodeTestResults
getTestResults()
protected void
readControlBlock(boolean applyStruct)
java.lang.String
toString()
-
Methods inherited from class ghidra.test.processors.support.PCodeTestAbstractControlBlock
applyU4Data, emuRead, emuReadString, emuWrite, getFunctionInfo, getFunctionInfo, getInfoStructureAddress, getMirroredDataAddress, getNumberFunctions, getStructureComponent, readCodePointer, readDataPointer, readDefinedDataPointer, readPointer
-
-
-
-
Field Detail
-
testFile
public final PCodeTestFile testFile
-
cachedProgramPath
public final java.lang.String cachedProgramPath
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getTestGroups
public java.util.List<PCodeTestGroup> getTestGroups()
-
getBreakOnDoneAddress
public Address getBreakOnDoneAddress()
-
getBreakOnPassAddress
public Address getBreakOnPassAddress()
-
getBreakOnErrorAddress
public Address getBreakOnErrorAddress()
-
getSprintf5Address
public Address getSprintf5Address()
-
getPrintfBufferAddress
public Address getPrintfBufferAddress()
-
getTestResults
public PCodeTestResults getTestResults()
-
readControlBlock
protected void readControlBlock(boolean applyStruct) throws ghidra.test.processors.support.PCodeTestAbstractControlBlock.InvalidControlBlockException, CodeUnitInsertionException
- Overrides:
readControlBlock
in classPCodeTestAbstractControlBlock
- Throws:
ghidra.test.processors.support.PCodeTestAbstractControlBlock.InvalidControlBlockException
CodeUnitInsertionException
-
-