Class DBTraceSection
- All Implemented Interfaces:
DBTraceObjectInterface,TraceSection,TraceObjectInterface,TraceUniqueObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface ghidra.trace.database.target.DBTraceObjectInterface
DBTraceObjectInterface.Translator<T> -
Field Summary
Fields inherited from interface ghidra.trace.model.target.iface.TraceObjectInterface
KEY_COMMENT, KEY_DISPLAY, KEY_KIND, KEY_MODIFIED, KEY_ORDER, KEY_SHORT_DISPLAY, KEY_TYPE, KEY_VALUEFields inherited from interface ghidra.trace.model.modules.TraceSection
KEY_MODULE, KEY_RANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete this section from the traceGet the module containing this sectiongetName(long snap) Get the "short name" of this sectionGet the object backing this implementationgetPath()Get the "full name" of this sectiongetRange(long snap) Get the virtual memory address range of this sectiongetTrace()Get the trace containing this sectionbooleanisValid(long snap) Check if the section is valid at the given snapshotvoidremove(long snap) Remove this section from the given snap onvoidSet the short name of this sectionvoidSet the short name of this sectionvoidsetRange(Lifespan lifespan, AddressRange range) Set the virtual memory address range of this sectionTraceChangeRecord<?, ?> translateEvent(TraceChangeRecord<?, ?> rec) Translate an object event into the interface-specific eventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.trace.database.target.DBTraceObjectInterface
getObjectKey, isDeleted, spaceForValueMethods inherited from interface ghidra.trace.model.modules.TraceSection
getEnd, getStart
-
Constructor Details
-
DBTraceSection
-
-
Method Details
-
getTrace
Description copied from interface:TraceSectionGet the trace containing this section- Specified by:
getTracein interfaceTraceSection- Returns:
- the trace
-
getModule
Description copied from interface:TraceSectionGet the module containing this section- Specified by:
getModulein interfaceTraceSection- Returns:
- the module
-
getPath
Description copied from interface:TraceSectionGet the "full name" of this sectionThis is a unique key (within a snap) among all sections, and may not be suitable for display on the screen.
- Specified by:
getPathin interfaceTraceSection- Returns:
- the path
-
setName
Description copied from interface:TraceSectionSet the short name of this sectionThe given name should be the section's name from its module's image, which is considered suitable for display on the screen.
- Specified by:
setNamein interfaceTraceSection- Parameters:
lifespan- the span of timename- the name
-
setName
Description copied from interface:TraceSectionSet the short name of this sectionThe given name should be the section's name from its module's image, which is considered suitable for display on the screen.
- Specified by:
setNamein interfaceTraceSection- Parameters:
snap- the snapname- the name
-
getName
Description copied from interface:TraceSectionGet the "short name" of this sectionThis defaults to the "full name," but can be modified via
TraceSection.setName(long, String)- Specified by:
getNamein interfaceTraceSection- Parameters:
snap- the snap- Returns:
- the name
-
setRange
Description copied from interface:TraceSectionSet the virtual memory address range of this section- Specified by:
setRangein interfaceTraceSection- Parameters:
lifespan- the span of timerange- the span of addresses
-
getRange
Description copied from interface:TraceSectionGet the virtual memory address range of this section- Specified by:
getRangein interfaceTraceSection- Parameters:
snap- the snap- Returns:
- the address range
-
delete
public void delete()Description copied from interface:TraceSectionDelete this section from the trace- Specified by:
deletein interfaceTraceSection
-
remove
public void remove(long snap) Description copied from interface:TraceSectionRemove this section from the given snap on- Specified by:
removein interfaceTraceSection- Parameters:
snap- the snap
-
isValid
public boolean isValid(long snap) Description copied from interface:TraceSectionCheck if the section is valid at the given snapshot- Specified by:
isValidin interfaceTraceSection- Parameters:
snap- the snapshot key- Returns:
- true if valid, false if not
-
getObject
Description copied from interface:TraceObjectInterfaceGet the object backing this implementation- Specified by:
getObjectin interfaceTraceObjectInterface- Returns:
- the object
-
translateEvent
Description copied from interface:DBTraceObjectInterfaceTranslate an object event into the interface-specific eventBoth the object event and the interface-specific event, if applicable, will be emitted. If multiple events need to be emitted, then this method may emit them directly via its object's trace. If exactly one event needs to be emitted, then this method should return the translated record. If no translation applies, or if the translated event(s) were emitted directly, this method returns
null.- Specified by:
translateEventin interfaceDBTraceObjectInterface- Parameters:
rec- the object event- Returns:
- the interface-specific event to emit, or
null
-