| /openbsd-src/gnu/llvm/lldb/source/Target/ |
| H A D | ThreadList.cpp | 48 m_threads = rhs.m_threads; in operator =() 88 return m_threads.size(); in GetSize() 98 if (idx < m_threads.size()) in GetThreadAtIndex() 99 thread_sp = m_threads[idx]; in GetThreadAtIndex() 111 const uint32_t num_threads = m_threads.size(); in FindThreadByID() 113 if (m_threads[idx]->GetID() == tid) { in FindThreadByID() 114 thread_sp = m_threads[idx]; in FindThreadByID() 129 const uint32_t num_threads = m_threads.size(); in FindThreadByProtocolID() 131 if (m_threads[idx]->GetProtocolID() == tid) { in FindThreadByProtocolID() 132 thread_sp = m_threads[idx]; in FindThreadByProtocolID() [all …]
|
| H A D | ThreadCollection.cpp | 19 ThreadCollection::ThreadCollection() : m_threads(), m_mutex() {} in ThreadCollection() 22 : m_threads(threads), m_mutex() {} in ThreadCollection() 26 m_threads.push_back(thread_sp); in AddThread() 33 if (m_threads.empty() || m_threads.back()->GetIndexID() < thread_index_id) in AddThreadSortedByIndexID() 34 m_threads.push_back(thread_sp); in AddThreadSortedByIndexID() 36 m_threads.insert( in AddThreadSortedByIndexID() 37 llvm::upper_bound(m_threads, thread_sp, in AddThreadSortedByIndexID() 48 if (idx < m_threads.size()) in InsertThread() 49 m_threads.insert(m_threads.begin() + idx, thread_sp); in InsertThread() 51 m_threads.push_back(thread_sp); in InsertThread() [all …]
|
| /openbsd-src/gnu/llvm/lldb/tools/debugserver/source/MacOSX/ |
| H A D | MachThreadList.cpp | 26 : m_threads(), m_threads_mutex(PTHREAD_MUTEX_RECURSIVE), in MachThreadList() 121 const size_t num_threads = m_threads.size(); in GetThreadByID() 123 if (m_threads[idx]->ThreadID() == tid) { in GetThreadByID() 124 thread_sp = m_threads[idx]; in GetThreadByID() 135 const size_t num_threads = m_threads.size(); in GetThreadByMachPortNumber() 137 if (m_threads[idx]->MachPortNumber() == mach_port_number) { in GetThreadByMachPortNumber() 138 thread_sp = m_threads[idx]; in GetThreadByMachPortNumber() 149 const size_t num_threads = m_threads.size(); in GetThreadIDByMachPortNumber() 151 if (m_threads[idx]->MachPortNumber() == mach_port_number) { in GetThreadIDByMachPortNumber() 152 return m_threads[idx]->ThreadID(); in GetThreadIDByMachPortNumber() [all …]
|
| H A D | MachThreadList.h | 100 collection m_threads; variable
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/OpenBSD/ |
| H A D | NativeProcessOpenBSD.cpp | 112 for (const auto &thread : process_up->m_threads) in Launch() 187 m_threads.clear(); in MonitorExited() 196 for (const auto &thread : m_threads) { in MonitorSIGTRAP() 205 for (const auto &thread : m_threads) { in MonitorSignal() 238 const auto &thread = m_threads[0]; in Resume() 258 for (const auto &thread : m_threads) in Resume() 270 for (const auto &thread : m_threads) in Resume() 382 size_t NativeProcessOpenBSD::UpdateThreads() { return m_threads.size(); } in UpdateThreads() 436 for (const auto &thread : m_threads) { in HasThreadNoLock() 457 if (m_threads.empty()) in AddThread() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/API/ |
| H A D | SBQueue.cpp | 38 m_threads = rhs.m_threads; in QueueImpl() 51 m_threads.clear(); in Clear() 100 m_threads.push_back(thread_sp); in FetchThreads() 134 result = m_threads.size(); in GetNumThreads() 144 if (queue_sp && idx < m_threads.size()) { in GetThreadAtIndex() 147 ThreadSP thread_sp = m_threads[idx].lock(); in GetThreadAtIndex() 206 m_threads; // threads currently executing this queue's items member in lldb_private::QueueImpl
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/FreeBSD/ |
| H A D | NativeProcessFreeBSD.cpp | 100 for (const auto &thread : process_up->m_threads) in Launch() 179 m_threads.clear(); in MonitorExited() 189 for (const auto &thread : m_threads) { in MonitorSIGSTOP() 256 for (const auto &thread : m_threads) in MonitorSIGTRAP() 258 SetCurrentThreadID(m_threads.front()->GetID()); in MonitorSIGTRAP() 264 for (const auto &t : m_threads) { in MonitorSIGTRAP() 373 for (const auto &abs_thread : m_threads) { in MonitorSignal() 439 for (const auto &abs_thread : m_threads) { in Resume() 700 size_t NativeProcessFreeBSD::UpdateThreads() { return m_threads.size(); } in UpdateThreads() 780 for (const auto &thread : m_threads) { in HasThreadNoLock() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/Windows/Common/ |
| H A D | NativeProcessWindows.cpp | 95 LLDB_LOG(log, "resuming {0} threads.", m_threads.size()); in Resume() 98 for (uint32_t i = 0; i < m_threads.size(); ++i) { in Resume() 99 auto thread = static_cast<NativeThreadWindows *>(m_threads[i].get()); in Resume() 274 for (uint32_t i = 0; i < m_threads.size(); ++i) { in StopThread() 275 auto t = static_cast<NativeThreadWindows *>(m_threads[i].get()); in StopThread() 283 size_t NativeProcessWindows::UpdateThreads() { return m_threads.size(); } in UpdateThreads() 439 assert(m_threads.empty()); in OnDebuggerConnected() 440 m_threads.push_back(std::make_unique<NativeThreadWindows>( in OnDebuggerConnected() 574 m_threads.push_back(std::move(thread)); in OnCreateThread() 584 for (auto t = m_threads.begin(); t != m_threads.end();) { in OnExitThread() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/NetBSD/ |
| H A D | NativeProcessNetBSD.cpp | 105 for (const auto &thread : process_up->m_threads) in Launch() 180 m_threads.clear(); in MonitorExited() 200 for (const auto &thread : m_threads) { in MonitorSIGSTOP() 227 for (const auto &t : m_threads) { in MonitorSIGTRAP() 262 for (const auto &thread : m_threads) in MonitorSIGTRAP() 372 for (const auto &abs_thread : m_threads) { in MonitorSignal() 468 ComputeSignalInfo(m_threads, resume_actions); in Resume() 472 for (const auto &abs_thread : m_threads) { in Resume() 727 size_t NativeProcessNetBSD::UpdateThreads() { return m_threads.size(); } in UpdateThreads() 807 for (const auto &thread : m_threads) { in HasThreadNoLock() [all …]
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Target/ |
| H A D | ThreadCollection.h | 47 return ThreadIterable(m_threads, GetMutex()); in Threads() 53 collection m_threads;
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/Linux/ |
| H A D | NativeProcessLinux.cpp | 553 llvm::erase_if(m_threads, [&](std::unique_ptr<NativeThreadProtocol> &t) { in MonitorSIGTRAP() 556 assert(m_threads.size() == 1); in MonitorSIGTRAP() 557 auto *main_thread = static_cast<NativeThreadLinux *>(m_threads[0].get()); in MonitorSIGTRAP() 901 for (const auto &thread : m_threads) { in Resume() 918 for (const auto &thread : m_threads) { in Resume() 983 for (const auto &thread : m_threads) { in Detach() 1017 for (const auto &thread : m_threads) { in Interrupt() 1487 return m_threads.size(); in UpdateThreads() 1645 for (const auto &thread : m_threads) { in HasThreadNoLock() 1662 auto it = llvm::find_if(m_threads, [&](const auto &thread_up) { in StopTrackingThread() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Host/common/ |
| H A D | NativeProcessProtocol.cpp | 102 if (idx < m_threads.size()) in GetThreadAtIndex() 103 return m_threads[idx].get(); in GetThreadAtIndex() 109 for (const auto &thread : m_threads) { in GetThreadByIDUnlocked() 174 for (const auto &thread : m_threads) { in SetWatchpoint() 215 for (const auto &thread : m_threads) { in RemoveWatchpoint() 261 for (const auto &thread : m_threads) { in SetHardwareBreakpoint() 300 for (const auto &thread : m_threads) { in RemoveHardwareBreakpoint()
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Host/common/ |
| H A D | NativeProcessProtocol.h | 226 return ThreadIterable(m_threads, m_threads_mutex); in Threads() 419 std::vector<std::unique_ptr<NativeThreadProtocol>> m_threads; variable
|