Add proc.tid

pull/23/merge
Zach Riggle 10 years ago
parent c1f1fd47cd
commit ea5b409fee

@ -26,6 +26,17 @@ class module(ModuleType):
return i.pid
return 0
@property
def tid(self):
if pwndbg.qemu.is_qemu_usermode():
return pwndbg.qemu.pid()
i = gdb.selected_thread()
if i is not None:
return i.ptid[1]
return self.pid
@property
def alive(self):
return gdb.selected_thread() is not None

Loading…
Cancel
Save