Package ghidra.app.services
Interface DebuggerPlatformService
public interface DebuggerPlatformService
A service to manage the current mapper for active traces
-
Method Summary
Modifier and TypeMethodDescriptiongetCurrentMapperFor(Trace trace) Get the current mapper for the given tracegetMapper(Trace trace, TraceObject object, long snap) Get a mapper applicable to the given objectgetNewMapper(Trace trace, TraceObject object, long snap) Get a new mapper for the given object, ignoring the trace's current mappervoidsetCurrentMapperFor(Trace trace, TraceObject focus, DebuggerPlatformMapper mapper, long snap) Set the current mapper for the trace and initialize the trace for the mapper
-
Method Details
-
getCurrentMapperFor
Get the current mapper for the given trace- Parameters:
trace- the trace- Returns:
- the mapper, or null
-
getMapper
Get a mapper applicable to the given objectIf the trace's current mapper is applicable to the object, it will be returned. Otherwise, the service will query the opinions for a new mapper, as in
getNewMapper(Trace, TraceObject, long)and set it as the current mapper before returning. If a new mapper is set, the trace is also initialized for that mapper.- Parameters:
trace- the traceobject- the object for which a mapper is desiredsnap- the snap, usually the current snap- Returns:
- the mapper, or null if no offer was provided
-
getNewMapper
Get a new mapper for the given object, ignoring the trace's current mapperThis will not replace the trace's current mapper, nor will it initialize the trace for the mapper.
- Parameters:
trace- the traceobject- the object for which a mapper is desiredsnap- the snap, usually the current snap- Returns:
- the mapper, or null if no offer was provided
-
setCurrentMapperFor
Set the current mapper for the trace and initialize the trace for the mapper- Parameters:
trace- the trace whose mapper to assign and initializefocus- the object of focusmapper- the mappersnap- the snap for initializing the trace
-