class OssiContext(object):
Object that provide useful OSSI information for a particular context.
Must not be directly constructed but retrieved through the following examples.
>>> # From a Transition >>> transition.context_before().ossi # from the context before the transition >>> transition.context_after().ossi # from the context after the transition
>>> # From a Context >>> context.ossi
| Method | __init__ |
Undocumented |
| Method | location |
Useful OSSI information related to an address, such as the nearest symbol or the base address. |
| Method | process |
Information about the process currently executing at this context, such as the process's name and PID. |
| Method | __repr__ |
Undocumented |
| Instance Variable | _datasource |
Undocumented |
| Instance Variable | _ctx_id |
Undocumented |
Useful OSSI information related to an address, such as the nearest symbol or the base address.
If the location could not be resolved, None is returned.
>>> print(context.ossi.location()) 'ntoskrnl!KiIsrLinkage+0x5a'
| Parameters | addr | The address on which the symbol context is query. if None, the value stored in the pc register is used as address. (type: int, long or None.) |
| Returns | A Location or None. | |
Information about the process currently executing at this context, such as the process's name and PID.
If the current process cannot be resolved, None is returned.
>>> print(context.ossi.process()) MpCmdRun.exe (4936)
| Returns | A ossi.process.Process, or None. | |