Package ghidra.trace.model.breakpoint
Interface TraceBreakpointCommon
- All Superinterfaces:
TraceObjectInterface,TraceUniqueObject
- All Known Subinterfaces:
TraceBreakpointLocation,TraceBreakpointSpec
- All Known Implementing Classes:
DBTraceBreakpointLocation,DBTraceBreakpointSpec
-
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_VALUE -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete this breakpoint from the tracegetComment(long snap) Get the comment on this breakpointgetName(long snap) Get the "short name" of this breakpointgetPath()Get the "full name" of this breakpointgetTrace()Get the trace containing this breakpointbooleanCheck if the breakpoint is present for any of the given spanbooleanisEnabled(long snap) Check whether this breakpoint is enabled or disabled at the given snapbooleanisValid(long snap) Check if the breakpoint is present at the given snapshotvoidremove(long snap) Remove this breakpoint from the given snap onvoidsetComment(long snap, String comment) Set a comment on this breakpointvoidsetComment(Lifespan lifespan, String comment) Set a comment on this breakpointvoidsetEnabled(long snap, boolean enabled) Set whether this breakpoint was enabled or disabledvoidsetEnabled(Lifespan lifespan, boolean enabled) Set whether this breakpoint was enabled or disabledvoidSet the "short name" of this breakpointvoidSet the "short name" of this breakpointMethods inherited from interface ghidra.trace.model.target.iface.TraceObjectInterface
getObjectMethods inherited from interface ghidra.trace.model.TraceUniqueObject
getObjectKey, isDeleted
-
Method Details
-
getTrace
Trace getTrace()Get the trace containing this breakpoint- Returns:
- the trace
-
getPath
String getPath()Get the "full name" of this breakpointThis is a name unique to this breakpoint, which may not be suitable for display on the screen.
- Returns:
- the path
-
setName
Set the "short name" of this breakpointThis should be a name suitable for display on the screen
- Parameters:
lifespan- the span of timename- the new name
-
setName
Set the "short name" of this breakpointThis should be a name suitable for display on the screen
- Parameters:
snap- the first effective snapname- the new name
-
getName
Get the "short name" of this breakpointThis defaults to the "full name," but can be modified via
setName(long, String)- Parameters:
snap- the snap- Returns:
- the name
-
setEnabled
Set whether this breakpoint was enabled or disabled- Parameters:
lifespan- the span of timeenabled- true if enabled, false if disabled
-
setEnabled
void setEnabled(long snap, boolean enabled) Set whether this breakpoint was enabled or disabled- Parameters:
snap- the first effective snapenabled- true if enabled, false if disabled
-
isEnabled
boolean isEnabled(long snap) Check whether this breakpoint is enabled or disabled at the given snap- Parameters:
snap- the snap- Returns:
- true if enabled, false if disabled
-
setComment
Set a comment on this breakpoint- Parameters:
lifespan- the span of timecomment- the comment, possiblynull
-
setComment
Set a comment on this breakpoint- Parameters:
snap- the snapcomment- the comment, possiblynull
-
getComment
Get the comment on this breakpoint- Parameters:
snap- the snap- Returns:
- the comment, possibly
null
-
remove
void remove(long snap) Remove this breakpoint from the given snap on- Parameters:
snap- the snap
-
delete
void delete()Delete this breakpoint from the trace -
isValid
boolean isValid(long snap) Check if the breakpoint is present at the given snapshotIn object mode, a breakpoint's life may be disjoint, so checking if the snap occurs between creation and destruction is not quite sufficient. This method encapsulates validity. In object mode, it checks that the breakpoint object has a canonical parent at the given snapshot. In table mode, it checks that the lifespan contains the snap.
- Parameters:
snap- the snapshot key- Returns:
- true if valid, false if not
-
isAlive
Check if the breakpoint is present for any of the given span- Parameters:
span- the span- Returns:
- true if its life intersects the span
-