Package ghidra.app.services
Record Class DebuggerEmulationService.CachedEmulator
java.lang.Object
java.lang.Record
ghidra.app.services.DebuggerEmulationService.CachedEmulator
- Record Components:
trace- the trace the emulator is bound toemulator- the emulator itselfwriter- the callbacks with delayed writes for trace/UI integrationversion- the cache version. SeeisValid().
- Enclosing interface:
DebuggerEmulationService
public static record DebuggerEmulationService.CachedEmulator(Trace trace, PcodeMachine<?> emulator, TraceEmulationIntegration.Writer writer, long version)
extends Record
An emulator managed by this service
-
Constructor Summary
ConstructorsConstructorDescriptionCachedEmulator(Trace trace, PcodeMachine<?> emulator, TraceEmulationIntegration.Writer writer) CachedEmulator(Trace trace, PcodeMachine<?> emulator, TraceEmulationIntegration.Writer writer, long version) Creates an instance of aCachedEmulatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionPcodeMachine<?> emulator()Get the emulatorfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisValid()Check if this cached emulator is still validfinal StringtoString()Returns a string representation of this record class.trace()Get the trace to which the emulator is boundlongversion()Returns the value of theversionrecord component.writer()Returns the value of thewriterrecord component.
-
Constructor Details
-
CachedEmulator
public CachedEmulator(Trace trace, PcodeMachine<?> emulator, TraceEmulationIntegration.Writer writer) -
CachedEmulator
public CachedEmulator(Trace trace, PcodeMachine<?> emulator, TraceEmulationIntegration.Writer writer, long version) Creates an instance of aCachedEmulatorrecord class.
-
-
Method Details
-
trace
Get the trace to which the emulator is bound- Returns:
- the trace
-
emulator
Get the emulatorWARNING: This emulator belongs to this service. You may interrupt it, but stepping it, or otherwise manipulating it without the service's knowledge can lead to unintended consequences.
- Returns:
- the emulator
-
isValid
public boolean isValid()Check if this cached emulator is still valid- Returns:
- true if valid
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
writer
Returns the value of thewriterrecord component.- Returns:
- the value of the
writerrecord component
-
version
public long version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-