libdebug.snapshots.thread.thread_snapshot
ThreadSnapshot
Bases: Snapshot
This object represents a snapshot of the target thread. It holds information about a thread's state.
Snapshot levels: - base: Registers - writable: Registers, writable memory contents - full: Registers, all readable memory contents
Source code in libdebug/snapshots/thread/thread_snapshot.py
__init__(thread, level='base', name=None)
Creates a new snapshot object for the given thread.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
thread
|
ThreadContext
|
The thread to take a snapshot of. |
required |
level
|
str
|
The level of the snapshot. Defaults to "base". |
'base'
|
name
|
str
|
A name associated to the snapshot. Defaults to None. |
None
|
Source code in libdebug/snapshots/thread/thread_snapshot.py
diff(other)
Creates a diff object between two snapshots.