Default to the current PID if the TID is zero

pull/172/head
Zach Riggle 9 years ago
parent 8e12dacc81
commit a4902c7e26

@ -81,6 +81,8 @@ class Process():
pid = pwndbg.proc.pid
if tid is None:
tid = pwndbg.proc.tid
if not tid:
tid = pid
self.pid = pid
self.tid = tid

Loading…
Cancel
Save