Thread class¶
Represents a thread in the target process.
-
class
dbgscript.
Thread
¶
-
Thread.
engine_id
¶ Get the dbgeng local thread id. This is not the Windows thread id.
-
Thread.
thread_id
¶ Get the Windows thread id.
-
Thread.
teb
¶ Get the address of the TEB.
-
Thread.
current_frame
¶ Get the current
StackFrame
.
-
Thread.
get_stack
() → tuple of StackFrame¶ Get the current call stack.
For example:
thd = ... # some thread stack = thd.get_stack() for frame in stack: print(frame.frame_number, frame.instruction_offset)