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
-
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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
writer
-
version
-