Package ghidra.test.processors.support
Class PCodeTestAbstractControlBlock
java.lang.Object
ghidra.test.processors.support.PCodeTestAbstractControlBlock
- Direct Known Subclasses:
PCodeTestControlBlock
,PCodeTestGroupControlBlock
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.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AddressSpace
protected final AddressSpace
protected final Structure
protected final Address
protected final int
protected final Program
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyU4Data
(Address addr) protected long
emuRead
(EmulatorHelper emu, Address addr, int size) protected String
emuReadString
(EmulatorHelper emu, Address strPtrAddr) protected void
emuWrite
(EmulatorHelper emu, Address addr, int size, long value) getFunctionInfo
(int functionIndex) getFunctionInfo
(String functionName) protected Address
getMirroredDataAddress
(EmulatorTestRunner emuTestRunner, Address addr) int
protected int
getStructureComponent
(Structure testInfoStruct, String fieldName) protected Address
readCodePointer
(MemBuffer buffer, int bufferOffset, boolean updateReference) protected void
readControlBlock
(boolean applyStruct) protected Address
readDataPointer
(MemBuffer buffer, int bufferOffset, boolean updateReference) protected Address
Check for a Data pointer at the specified address and return the referenced address.protected Address
readPointer
(int controlBlockOffset)
-
Field Details
-
program
-
codeSpace
-
dataSpace
-
pointerSize
protected final int pointerSize -
infoStructAddr
-
infoProgramStruct
-
-
Method Details
-
getInfoStructureAddress
-
getFunctionInfo
-
getFunctionInfo
-
getNumberFunctions
public int getNumberFunctions() -
readDefinedDataPointer
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) throws MemoryAccessException - Throws:
MemoryAccessException
-
readDataPointer
-
readPointer
- Throws:
MemoryAccessException
-
applyU4Data
-
getStructureComponent
-
readControlBlock
protected void readControlBlock(boolean applyStruct) throws ghidra.test.processors.support.PCodeTestAbstractControlBlock.InvalidControlBlockException, CodeUnitInsertionException - Throws:
ghidra.test.processors.support.PCodeTestAbstractControlBlock.InvalidControlBlockException
CodeUnitInsertionException
-
emuReadString
-
emuRead
-
emuWrite
-
getMirroredDataAddress
-