Package ghidra.debug.api.emulation
Interface PcodeDebuggerRegistersAccess
- All Superinterfaces:
PcodeDebuggerDataAccess,PcodeTraceDataAccess,PcodeTraceRegistersAccess
public interface PcodeDebuggerRegistersAccess
extends PcodeTraceRegistersAccess, PcodeDebuggerDataAccess
A data-access shim for a trace's registers and the debugger
-
Method Summary
Modifier and TypeMethodDescriptionreadFromTargetRegisters(AddressSetView unknown) Instruct the associated recorder to read registers from the targetwriteTargetRegister(Address address, byte[] data) Instruct the associated recorder to write target registersMethods inherited from interface ghidra.debug.api.emulation.PcodeDebuggerDataAccess
isLiveMethods inherited from interface ghidra.pcode.exec.trace.data.PcodeTraceDataAccess
getBytes, getLanguage, getPropertyAccess, getViewportState, intersectUnknown, intersectViewKnown, putBytes, setState, translateMethods inherited from interface ghidra.pcode.exec.trace.data.PcodeTraceRegistersAccess
initializeThreadContext
-
Method Details
-
readFromTargetRegisters
Instruct the associated recorder to read registers from the target- Parameters:
unknown- the address set (in the platform'sregisterspace) of registers to read- Returns:
- a future which completes when the read is complete and its results recorded to the trace. It completes with true when any part of target state was successfully read. It completes with false if there is no target, or if the target was not read.
-
writeTargetRegister
Instruct the associated recorder to write target registersIn normal operation, this will also cause the recorder, upon a successful write, to record the same values into the destination trace. If this shim is not associated with a live session, the returned future completes immediately with false.
- Parameters:
address- the address of the first byte to write (in the platform'sregisterspace)data- the bytes to write- Returns:
- a future which completes when the write is complete and its results recorded to the trace. It completes with true when the target was written. It completes with false if there is no target, or if the target is not effected.
-