reven2.stack.Stack(object)
class documentationreven2.stack
(View In Hierarchy)
Representation of a stack
See module documentation for more information
A stack is always linked to a context since the state of a stack changes between contexts
The stack linked to a context is directly accessible through the context itself using `Context.stack`.
Method | __init__ | Undocumented |
Method | context | Property: The context linked to the stack. |
Method | backtrace | Property: Get a formatted string representing the
backtrace. |
Method | frames | Get the known frames of the stack. |
Method | prev_stack | Get the previous active stack. |
Method | next_stack | Get the next active stack. |
Method | __repr__ | Undocumented |
Property: The context linked to the stack.
Returns | A reven2.trace.Context . |
Property: Get a formatted string
representing the
backtrace.
[{level}] {creation transition id} {ossi location}
if the creation transition is `None`, `???` is printed.
>>> stack.backtrace '[0] #2753249448 - ntoskrnl!KeZeroPages\n[1] #2753249199 - ntoskrnl!MiZeroPhysicalPage\n...' >>> print(stack.backtrace) [0] #2753249448 - ntoskrnl!KeZeroPages [1] #2753249199 - ntoskrnl!MiZeroPhysicalPage [2] #2753248836 - ntoskrnl!MiResolveDemandZeroFault [3] #2753248607 - ntoskrnl!MmAccessFault [4] #2753248552 - ntoskrnl!KiPageFault [5] ??? - ntoskrnl!KiSystemCall64+0x15
Returns | A formatted string representing the backtrace. | |
Raises | RuntimeError | if the stack events resource has not been generated. |
RuntimeError | if the OSSI resource is not available. |
Get the known frames of the stack.
The first frame in the list is the most recent one and the last one is the oldest one.
Returns | A generator of StackFrame . | |
Raises | RuntimeError | if the stack events resource has not been generated. |
Get the previous active stack.
See module documentation for more information.
Returns | The previous active Stack or None
if the current one is the first active stack in the trace. | |
Raises | RuntimeError | if the stack events resource has not been generated. |
Get the next active stack.
See module documentation for more information.
Returns | The next active Stack or
None if the current one is last active stack in the trace. | |
Raises | RuntimeError | if the stack events resource has not been generated. |