Package ghidra.trace.model.stack
Interface TraceStackFrame
- All Superinterfaces:
TraceObjectInterface
- All Known Implementing Classes:
DBTraceStackFrame
A frame in a
TraceStack-
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 TypeMethodDescriptiongetComment(long snap) Get the user comment for the frameintgetLevel()Get the frame's position in the containing stackgetProgramCounter(long snap) Get the program counter at the given snapgetStack()Get the containing stackgetTrace()Get the trace containing this framevoidsetComment(long snap, String comment) Set the user comment for the framevoidsetProgramCounter(Lifespan span, Address pc) Set the program counter over the given spanMethods inherited from interface ghidra.trace.model.target.iface.TraceObjectInterface
getObject
-
Field Details
-
KEY_PC
- See Also:
-
-
Method Details
-
getTrace
Trace getTrace()Get the trace containing this frame- Returns:
- the trace
-
getStack
TraceStack getStack()Get the containing stack- Returns:
- the stack
-
getLevel
int getLevel()Get the frame's position in the containing stack0 represents the innermost frame or top of the stack.
- Returns:
- the frame's level
-
getProgramCounter
Get the program counter at the given snap- Parameters:
snap- the snap (only relevant in the experimental objects mode. Ordinarily, the PC is fixed over the containing stack's lifetime)- Returns:
- the program counter
-
setProgramCounter
Set the program counter over the given span- Parameters:
span- the span (only relevant in the experimental objects mode. Ordinarily, the PC is fixed over the containing stack's lifetime)pc- the program counter
-
getComment
Get the user comment for the frameIn the experimental objects mode, this actually gets the comment in the listing at the frame's program counter for the given snap.
- Parameters:
snap- the snap (only relevant in the experimental objects mode)- Returns:
- the (nullable) comment
-
setComment
Set the user comment for the frameIn the experimental objects mode, this actually sets the comment in the listing at the frame's program counter for the given snap.
- Parameters:
snap- the snap (only relevant in the experimental objects mode)comment- the (nullable) comment
-