Package ghidra.pcode.exec.trace.data
Class DefaultPcodeTraceAccess
java.lang.Object
ghidra.pcode.exec.trace.data.AbstractPcodeTraceAccess<DefaultPcodeTraceMemoryAccess,DefaultPcodeTraceRegistersAccess>
ghidra.pcode.exec.trace.data.DefaultPcodeTraceAccess
- All Implemented Interfaces:
PcodeTraceAccess
public class DefaultPcodeTraceAccess
extends AbstractPcodeTraceAccess<DefaultPcodeTraceMemoryAccess,DefaultPcodeTraceRegistersAccess>
The default trace access shim for a session
-
Field Summary
Fields inherited from class ghidra.pcode.exec.trace.data.AbstractPcodeTraceAccess
dataForLocalStateByThreadAndFrame, dataForSharedState, platform, snap, threadsSnap, viewport -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPcodeTraceAccess(TracePlatform platform, long snap) Construct a shimDefaultPcodeTraceAccess(TracePlatform platform, long snap, long threadsSnap) Construct a shim -
Method Summary
Modifier and TypeMethodDescriptionderiveForWrite(long snap) Derive an access for writing a snapshot, where this access was the emulator's sourceprotected DefaultPcodeTraceRegistersAccessnewDataForLocalState(TraceThread thread, int frame) Factory method for a thread's local data-access shimprotected DefaultPcodeTraceMemoryAccessFactory method for the shared data-access shimMethods inherited from class ghidra.pcode.exec.trace.data.AbstractPcodeTraceAccess
getDataForLocalState, getDataForLocalState, getDataForSharedState, getLanguage, getTrace, getTraceThreadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.pcode.exec.trace.data.PcodeTraceAccess
getDataForThreadState, newPcodeTraceThreadAccess
-
Constructor Details
-
DefaultPcodeTraceAccess
Construct a shim- Parameters:
platform- the associated platformsnap- the associated snapthreadsSnap- the snap to use when finding associated threads between trace and emulator
-
DefaultPcodeTraceAccess
Construct a shim- Parameters:
platform- the associated platformsnap- the associated snap
-
-
Method Details
-
deriveForWrite
Description copied from interface:PcodeTraceAccessDerive an access for writing a snapshot, where this access was the emulator's source- Parameters:
snap- the destination snapshot key- Returns:
- the derived access shim
-
newDataForLocalState
Description copied from class:AbstractPcodeTraceAccessFactory method for a thread's local data-access shim- Specified by:
newDataForLocalStatein classAbstractPcodeTraceAccess<DefaultPcodeTraceMemoryAccess,DefaultPcodeTraceRegistersAccess> - Parameters:
thread- the associated trace threadframe- the frame, usually 0- Returns:
- the new data-access shim
-