Lines Matching refs:idx

105     for (size_t idx = 0; idx < num_threads; ++idx)
107 if (m_threads[idx]->ThreadID() == tid)
109 thread_sp = m_threads[idx];
122 for (size_t idx = 0; idx < num_threads; ++idx)
124 if (m_threads[idx]->MachPortNumber() == mach_port_number)
126 thread_sp = m_threads[idx];
139 for (size_t idx = 0; idx < num_threads; ++idx)
141 if (m_threads[idx]->MachPortNumber() == mach_port_number)
143 return m_threads[idx]->ThreadID();
155 for (size_t idx = 0; idx < num_threads; ++idx)
157 if (m_threads[idx]->ThreadID() == globally_unique_id)
159 return m_threads[idx]->MachPortNumber();
211 MachThreadList::ThreadIDAtIndex (nub_size_t idx) const
214 if (idx < m_threads.size())
215 return m_threads[idx]->ThreadID();
287 size_t idx;
291 for (idx = 0; idx < thread_list_count; ++idx)
293 const thread_t mach_port_num = thread_list[idx];
345 for (uint32_t idx = 0; idx < num_threads; ++idx)
347 if (m_threads[idx]->GetStopException().IsValid())
349 m_current_thread = m_threads[idx];
362 for (uint32_t idx = 0; idx < num_threads; ++idx)
364 m_threads[idx]->Dump(idx);
408 for (uint32_t idx = 0; idx < num_threads; ++idx)
410 MachThread *thread = m_threads[idx].get();
436 for (uint32_t idx = 0; idx < num_new_threads; ++idx)
441 new_threads[idx]->ThreadID(),
442 new_threads[idx]->IsUserReady());
453 for (uint32_t idx = 0; idx < num_threads; ++idx)
455 m_threads[idx]->ThreadDidStop();
477 for (uint32_t idx = 0; !should_stop && idx < num_threads; ++idx)
479 should_stop = m_threads[idx]->ShouldStop(step_more);
490 for (uint32_t idx = 0; idx < num_threads; ++idx)
492 m_threads[idx]->NotifyBreakpointChanged(bp);
503 for (uint32_t idx = 0; idx < num_threads; ++idx)
504 m_threads[idx]->EnableHardwareBreakpoint(bp);
515 for (uint32_t idx = 0; idx < num_threads; ++idx)
516 m_threads[idx]->DisableHardwareBreakpoint(bp);
534 for (uint32_t idx = 0; idx < num_threads; ++idx)
536 if ((hw_index = m_threads[idx]->EnableHardwareWatchpoint(wp, also_set_on_task)) == INVALID_NUB_HW_INDEX)
538 // We know that idx failed for some reason. Let's rollback the transaction for [0, idx).
539 for (uint32_t i = 0; i < idx; ++i)
546 for (uint32_t idx = 0; idx < num_threads; ++idx)
547 m_threads[idx]->FinishTransForHWP();
564 for (uint32_t idx = 0; idx < num_threads; ++idx)
566 if (!m_threads[idx]->DisableHardwareWatchpoint(wp, also_set_on_task))
568 // We know that idx failed for some reason. Let's rollback the transaction for [0, idx).
569 for (uint32_t i = 0; i < idx; ++i)
576 for (uint32_t idx = 0; idx < num_threads; ++idx)
577 m_threads[idx]->FinishTransForHWP();
601 for (uint32_t idx = 0; !should_stop && idx < num_threads; ++idx)
603 if (m_threads[idx]->GetStopException().SoftSignal () == signo)
604 return idx;