class Stack(object):
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 | __eq__ |
Compares the instance for equality with an object. |
Method | __hash__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Get a formatted string representing the backtrace. |
Method | format |
This method gets an html formatting string representation for this class instance. |
Method | frame |
The current frame of the stack. |
Method | frames |
Get the known frames of the stack. |
Method | next |
Get the next active stack. |
Method | prev |
Get the previous active stack. |
Property | context |
Property: The context linked to the stack. |
Method | _repr |
Undocumented |
Instance Variable | _context |
Undocumented |
Instance Variable | _data |
Undocumented |
Instance Variable | _frames |
Undocumented |
Compares the instance for equality with an object.
- if the object is not a
Stack
, will return False.
Parameters | |
other:object | Undocumented |
Returns | |
bool | Undocumented |
Undocumented
Parameters | |
data_DataSource | Undocumented |
context:_Context | Undocumented |
Get a formatted string representing the backtrace.
Format
[{level}] {creation transition id} {ossi location}
if the creation transition is None, ??? is printed.
Examples
>>> str(stack) '[0] #2753249448 - ntoskrnl!KeZeroPages\n[1] #2753249199 - ntoskrnl!MiZeroPhysicalPage\n...' >>> print(stack) [0] #2753249448 - ntoskrnl!KeZeroPages [1] #2753249199 - ntoskrnl!MiZeroPhysicalPage [2] #2753248836 - ntoskrnl!MiResolveDemandZeroFault [3] #2753248607 - ntoskrnl!MmAccessFault [4] #2753248552 - ntoskrnl!KiPageFault [5] ??? - ntoskrnl!KiSystemCall64+0x15
Information
Returns | |
str | 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. |
This method gets an html formatting string representation for this class instance.
Information
Returns | |
str | String |
The current frame of the stack.
This function is equivalent to next(self.frames()).
Information
Returns | |
StackFrame | Undocumented |
Raises | |
RuntimeError | if the stack events resource has not been generated. |
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.
Information
Returns | |
_Iterator[ | A generator of StackFrame . |
Raises | |
RuntimeError | if the stack events resource has not been generated. |