Package ghidra.trace.model.modules
Interface TraceSection
- All Superinterfaces:
TraceObjectInterface,TraceUniqueObject
- All Known Implementing Classes:
DBTraceSection
An allocated section of a binary module
Note that the model should only present those sections which are allocated in memory. Otherwise strange things may happen, such as zero-length ranges (which AddressRange hates), or overlapping ranges (which Trace hates).
LATER?: Present all sections, but include isAllocated
-
Field Summary
FieldsFields 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_VALUE -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete this section from the tracedefault AddressgetEnd(long snap) Get the module containing this sectiongetName(long snap) Get the "short name" of this sectiongetPath()Get the "full name" of this sectiongetRange(long snap) Get the virtual memory address range of this sectiondefault AddressgetStart(long snap) getTrace()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 sectionMethods inherited from interface ghidra.trace.model.target.iface.TraceObjectInterface
getObjectMethods inherited from interface ghidra.trace.model.TraceUniqueObject
getObjectKey, isDeleted
-
Field Details
-
KEY_MODULE
- See Also:
-
KEY_RANGE
- See Also:
-
-
Method Details
-
getTrace
Trace getTrace()Get the trace containing this section- Returns:
- the trace
-
getModule
TraceModule getModule()Get the module containing this section- Returns:
- the module
-
getPath
String getPath()Get 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.
- Returns:
- the path
-
setName
Set 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.
- Parameters:
lifespan- the span of timename- the name
-
setName
Set 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.
- Parameters:
snap- the snapname- the name- Throws:
DuplicateNameException- if the specified name would conflict with another section's in this module
-
getName
Get the "short name" of this sectionThis defaults to the "full name," but can be modified via
setName(long, String)- Parameters:
snap- the snap- Returns:
- the name
-
setRange
Set the virtual memory address range of this section- Parameters:
lifespan- the span of timerange- the span of addresses
-
getRange
Get the virtual memory address range of this section- Parameters:
snap- the snap- Returns:
- the address range
-
getStart
- Parameters:
snap- the snap- Returns:
- the min address in the range
- See Also:
-
getEnd
- Parameters:
snap- the snap- Returns:
- the max address in the range
- See Also:
-
delete
void delete()Delete this section from the trace -
remove
void remove(long snap) Remove this section from the given snap on- Parameters:
snap- the snap
-
isValid
boolean isValid(long snap) Check if the section is valid at the given snapshot- Parameters:
snap- the snapshot key- Returns:
- true if valid, false if not
-