def suspend_other_thread(): current_thread = idc.get_current_thread() thread_count = idc.get_thread_qty() for i in range(0, thread_count): other_thread = idc.getn_thread(i) if other_thread != current_thread: idc.suspend_thread(other_thread)
def resume_other_thread(): current_thread = idc.get_current_thread() thread_count = idc.get_thread_qty() for i in range(0, thread_count): other_thread = idc.getn_thread(i) if other_thread != current_thread: idc.resume_thread(other_thread)
def Threads(): """Returns all thread IDs""" for i in xrange(0, idc.get_thread_qty()): yield idc.getn_thread(i)
def Threads(): """Returns all thread IDs for the current debugee""" for i in range(0, idc.get_thread_qty()): yield idc.getn_thread(i)