idautils.py: Added Threads() iterator to enum threads

This commit is contained in:
elias.bachaalany 2009-10-05 10:35:27 +00:00
parent 4191b186d9
commit 9917459559

View File

@ -171,6 +171,10 @@ def XrefsTo(ea, flags=0):
while xref.next_to(): while xref.next_to():
yield _copy_xref(xref) yield _copy_xref(xref)
def Threads():
"""Returns all thread IDs"""
for i in xrange(0, idc.GetThreadQty()):
yield idc.GetThreadId(i)
def Heads(start=idaapi.cvar.inf.minEA, end=idaapi.cvar.inf.maxEA): def Heads(start=idaapi.cvar.inf.minEA, end=idaapi.cvar.inf.maxEA):
""" """