Package ghidra.trace.database.listing
Class DBTraceDefinedUnitsView
java.lang.Object
ghidra.trace.database.listing.AbstractBaseDBTraceCodeUnitsView<AbstractDBTraceCodeUnit<?>>
ghidra.trace.database.listing.AbstractComposedDBTraceCodeUnitsView<AbstractDBTraceCodeUnit<?>,AbstractBaseDBTraceDefinedUnitsView<? extends AbstractDBTraceCodeUnit<?>>>
ghidra.trace.database.listing.DBTraceDefinedUnitsView
- All Implemented Interfaces:
InternalBaseCodeUnitsView<TraceCodeUnit>,InternalTraceBaseDefinedUnitsView<TraceCodeUnit>,TraceBaseCodeUnitsView<TraceCodeUnit>,TraceBaseDefinedUnitsView<TraceCodeUnit>,TraceDefinedUnitsView
public class DBTraceDefinedUnitsView
extends AbstractComposedDBTraceCodeUnitsView<AbstractDBTraceCodeUnit<?>,AbstractBaseDBTraceDefinedUnitsView<? extends AbstractDBTraceCodeUnit<?>>>
implements TraceDefinedUnitsView, InternalTraceBaseDefinedUnitsView<TraceCodeUnit>
The implementation of
TraceCodeOperations.data()-
Field Summary
Fields inherited from class ghidra.trace.database.listing.AbstractComposedDBTraceCodeUnitsView
partsFields inherited from class ghidra.trace.database.listing.AbstractBaseDBTraceCodeUnitsView
space -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear(Lifespan span, AddressRange range, boolean clearContext, TaskMonitor monitor) Clear the units contained within the given span and address range.booleancoversRange(Lifespan span, AddressRange range) Check if the given span of snaps and range of addresses is covered by the unitsbooleanintersectsRange(Lifespan span, AddressRange range) Check if the given span of snaps and range of addresses intersects any unitMethods inherited from class ghidra.trace.database.listing.AbstractComposedDBTraceCodeUnitsView
compareBackward, compareForward, containsAddress, get, getAddressSetView, getAt, getCeiling, getContaining, getFloor, getIntersecting, sizeMethods inherited from class ghidra.trace.database.listing.AbstractBaseDBTraceCodeUnitsView
coversRange, get, get, get, get, getAddressSetView, getAddressSpace, getAfter, getBefore, getSpace, getTrace, intersectsRangeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.trace.database.listing.InternalBaseCodeUnitsView
get, getContaining, getForRegister, getSpaceMethods inherited from interface ghidra.trace.database.listing.InternalTraceBaseDefinedUnitsView
clearMethods inherited from interface ghidra.trace.model.listing.TraceBaseCodeUnitsView
containsAddress, coversRange, get, get, get, get, get, get, getAddressSetView, getAddressSetView, getAfter, getAt, getBefore, getCeiling, getContaining, getContaining, getFloor, getForRegister, getIntersecting, getTrace, intersectsRange, sizeMethods inherited from interface ghidra.trace.model.listing.TraceBaseDefinedUnitsView
clear
-
Constructor Details
-
DBTraceDefinedUnitsView
Construct the view- Parameters:
space- the space, bound to an address space
-
-
Method Details
-
coversRange
Description copied from interface:TraceBaseCodeUnitsViewCheck if the given span of snaps and range of addresses is covered by the unitsThis checks if every (snap, address) point within the given box is contained within some code unit in this view.
- Specified by:
coversRangein interfaceTraceBaseCodeUnitsView<TraceCodeUnit>- Specified by:
coversRangein classAbstractBaseDBTraceCodeUnitsView<AbstractDBTraceCodeUnit<?>>- Parameters:
span- the span of snapsrange- the address range- Returns:
- true if covered, false otherwise
- See Also:
-
intersectsRange
Description copied from interface:TraceBaseCodeUnitsViewCheck if the given span of snaps and range of addresses intersects any unitThis checks if any (snap, address) point within the given box is contained within some code unit in this view.
- Specified by:
intersectsRangein interfaceTraceBaseCodeUnitsView<TraceCodeUnit>- Specified by:
intersectsRangein classAbstractBaseDBTraceCodeUnitsView<AbstractDBTraceCodeUnit<?>>- Parameters:
span- the span of snapsrange- the address range- Returns:
- true if intersecting, false otherwise
- See Also:
-
clear
public void clear(Lifespan span, AddressRange range, boolean clearContext, TaskMonitor monitor) throws CancelledException Description copied from interface:TraceBaseDefinedUnitsViewClear the units contained within the given span and address range.Any units alive before the given span are truncated instead of deleted. That is, their end snaps are reduced such that they no longer intersect the given span. Note that the same is not true of a unit's start snap. If the start snap is contained in the span, the unit is deleted, even if its end snap is outside the span.
- Specified by:
clearin interfaceTraceBaseDefinedUnitsView<TraceCodeUnit>- Parameters:
span- the span to clearrange- the range to clearclearContext- true to clear the register context as wellmonitor- a monitor for progress and cancellation- Throws:
CancelledException- if the clear is cancelled
-