diff --git a/python/idautils.py b/python/idautils.py index b25aeb9..b668e9d 100644 --- a/python/idautils.py +++ b/python/idautils.py @@ -171,6 +171,10 @@ def XrefsTo(ea, flags=0): while xref.next_to(): 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): """