| /openbsd-src/gnu/llvm/lldb/tools/debugserver/source/MacOSX/ |
| H A D | MachThreadList.cpp | 32 MachThreadSP thread_sp(GetThreadByID(tid)); in GetState() local 33 if (thread_sp) in GetState() 34 return thread_sp->GetState(); in GetState() 39 MachThreadSP thread_sp(GetThreadByID(tid)); in GetName() local 40 if (thread_sp) in GetName() 41 return thread_sp->GetName(); in GetName() 48 MachThreadSP thread_sp(GetThreadByID(tid)); in GetRequestedQoS() local 49 if (thread_sp) in GetRequestedQoS() 50 return thread_sp->GetRequestedQoS(tsd, dti_qos_class_index); in GetRequestedQoS() 55 MachThreadSP thread_sp(GetThreadByID(tid)); in GetPThreadT() local [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Target/ |
| H A D | ThreadList.cpp | 97 ThreadSP thread_sp; in GetThreadAtIndex() local 99 thread_sp = m_threads[idx]; in GetThreadAtIndex() 100 return thread_sp; in GetThreadAtIndex() 109 ThreadSP thread_sp; in FindThreadByID() local 114 thread_sp = m_threads[idx]; in FindThreadByID() 118 return thread_sp; in FindThreadByID() 127 ThreadSP thread_sp; in FindThreadByProtocolID() local 132 thread_sp = m_threads[idx]; in FindThreadByProtocolID() 136 return thread_sp; in FindThreadByProtocolID() 145 ThreadSP thread_sp; in RemoveThreadByID() local [all …]
|
| H A D | StopInfo.cpp | 40 ThreadSP thread_sp(m_thread_wp.lock()); in IsValid() local 41 if (thread_sp) in IsValid() 42 return thread_sp->GetProcess()->GetStopID() == m_stop_id; in IsValid() 47 ThreadSP thread_sp(m_thread_wp.lock()); in MakeStopInfoValid() local 48 if (thread_sp) { in MakeStopInfoValid() 49 m_stop_id = thread_sp->GetProcess()->GetStopID(); in MakeStopInfoValid() 50 m_resume_id = thread_sp->GetProcess()->GetResumeID(); in MakeStopInfoValid() 55 ThreadSP thread_sp(m_thread_wp.lock()); in HasTargetRunSinceMe() local 57 if (thread_sp) { in HasTargetRunSinceMe() 58 lldb::StateType ret_type = thread_sp->GetProcess()->GetPrivateState(); in HasTargetRunSinceMe() [all …]
|
| H A D | ThreadCollection.cpp | 24 void ThreadCollection::AddThread(const ThreadSP &thread_sp) { in AddThread() argument 26 m_threads.push_back(thread_sp); in AddThread() 29 void ThreadCollection::AddThreadSortedByIndexID(const ThreadSP &thread_sp) { in AddThreadSortedByIndexID() argument 32 const uint32_t thread_index_id = thread_sp->GetIndexID(); in AddThreadSortedByIndexID() 34 m_threads.push_back(thread_sp); in AddThreadSortedByIndexID() 37 llvm::upper_bound(m_threads, thread_sp, in AddThreadSortedByIndexID() 41 thread_sp); in AddThreadSortedByIndexID() 45 void ThreadCollection::InsertThread(const lldb::ThreadSP &thread_sp, in InsertThread() argument 49 m_threads.insert(m_threads.begin() + idx, thread_sp); in InsertThread() 51 m_threads.push_back(thread_sp); in InsertThread() [all …]
|
| H A D | ExecutionContext.cpp | 37 ExecutionContext::ExecutionContext(const lldb::ThreadSP &thread_sp) in ExecutionContext() argument 39 if (thread_sp) in ExecutionContext() 40 SetContext(thread_sp); in ExecutionContext() 66 lldb::ThreadSP thread_sp(thread_wp.lock()); in ExecutionContext() local 67 if (thread_sp) in ExecutionContext() 68 SetContext(thread_sp); in ExecutionContext() 252 void ExecutionContext::SetThreadSP(const lldb::ThreadSP &thread_sp) { in SetThreadSP() argument 253 m_thread_sp = thread_sp; in SetThreadSP() 309 void ExecutionContext::SetContext(const lldb::ThreadSP &thread_sp) { in SetContext() argument 311 m_thread_sp = thread_sp; in SetContext() [all …]
|
| H A D | ThreadPlanStack.cpp | 425 ThreadSP thread_sp = current_threads.FindThreadByID(cur_tid); in Update() local 426 if (!thread_sp) in Update() 442 ThreadSP thread_sp = m_process.GetThreadList().FindThreadByID(tid); in DumpPlans() local 445 if (!thread_sp) in DumpPlans() 448 if (thread_sp) in DumpPlans() 449 index_id = thread_sp->GetIndexID(); in DumpPlans() 477 ThreadSP thread_sp = m_process.GetThreadList().FindThreadByID(tid); in DumpPlansForTID() local 480 if (!thread_sp) { in DumpPlansForTID() 486 if (thread_sp) in DumpPlansForTID() 487 index_id = thread_sp->GetIndexID(); in DumpPlansForTID() [all …]
|
| H A D | OperatingSystem.cpp | 47 const lldb::ThreadSP &thread_sp) { in IsOperatingSystemPluginThread() argument 48 if (thread_sp) in IsOperatingSystemPluginThread() 49 return thread_sp->IsOperatingSystemPluginThread(); in IsOperatingSystemPluginThread()
|
| H A D | Queue.cpp | 44 for (ThreadSP thread_sp : process_sp->Threads()) { in GetThreads() local 45 if (thread_sp->GetQueueID() == m_queue_id) { in GetThreads() 46 result.push_back(thread_sp); in GetThreads()
|
| H A D | AssertFrameRecognizer.cpp | 133 ThreadSP thread_sp = frame_sp->GetThread(); in RecognizeFrame() local 134 ProcessSP process_sp = thread_sp->GetProcess(); in RecognizeFrame() 148 prev_frame_sp = thread_sp->GetStackFrameAtIndex(frame_index); in RecognizeFrame() 172 StackFrameSP most_relevant_frame_sp = thread_sp->GetStackFrameAtIndex( in RecognizeFrame()
|
| H A D | StackFrame.cpp | 53 StackFrame::StackFrame(const ThreadSP &thread_sp, user_id_t frame_idx, in StackFrame() argument 58 : m_thread_wp(thread_sp), m_frame_index(frame_idx), in StackFrame() 79 StackFrame::StackFrame(const ThreadSP &thread_sp, user_id_t frame_idx, in StackFrame() argument 84 : m_thread_wp(thread_sp), m_frame_index(frame_idx), in StackFrame() 105 StackFrame::StackFrame(const ThreadSP &thread_sp, user_id_t frame_idx, in StackFrame() argument 110 : m_thread_wp(thread_sp), m_frame_index(frame_idx), in StackFrame() 113 m_id(pc_addr.GetLoadAddress(thread_sp->CalculateTarget().get()), cfa, in StackFrame() 176 ThreadSP thread_sp = GetThread(); in GetFrameIndex() local 177 if (thread_sp) in GetFrameIndex() 178 return thread_sp->GetStackFrameList()->GetVisibleStackFrameIndex( in GetFrameIndex() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/OperatingSystem/Python/ |
| H A D | OperatingSystemPython.cpp | 192 ThreadSP thread_sp(CreateThreadFromThreadInfo( in UpdateThreadList() local 195 if (thread_sp) in UpdateThreadList() 196 new_thread_list.AddThread(thread_sp); in UpdateThreadList() 220 ThreadSP thread_sp; in CreateThreadFromThreadInfo() local 237 thread_sp = old_thread_list.FindThreadByID(tid, false); in CreateThreadFromThreadInfo() 238 if (thread_sp) { in CreateThreadFromThreadInfo() 242 if (!IsOperatingSystemPluginThread(thread_sp)) { in CreateThreadFromThreadInfo() 246 thread_sp.reset(); in CreateThreadFromThreadInfo() 250 if (!thread_sp) { in CreateThreadFromThreadInfo() 253 thread_sp = std::make_shared<ThreadMemory>(*m_process, tid, name, queue, in CreateThreadFromThreadInfo() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/ |
| H A D | InstrumentationRuntimeMainThreadChecker.cpp | 83 ThreadSP thread_sp = exe_ctx_ref.GetThreadSP(); in RetrieveReportData() local 84 StackFrameSP frame_sp = thread_sp->GetSelectedFrame(); in RetrieveReportData() 123 for (unsigned I = 0; I < thread_sp->GetStackFrameCount(); ++I) { in RetrieveReportData() 124 StackFrameSP frame = thread_sp->GetStackFrameAtIndex(I); in RetrieveReportData() 145 d->AddIntegerItem("tid", thread_sp->GetIndexID()); in RetrieveReportData() 161 ThreadSP thread_sp = context->exe_ctx_ref.GetThreadSP(); in NotifyBreakpointHit() local 162 if (!process_sp || !thread_sp || in NotifyBreakpointHit() 177 thread_sp->SetStopInfo( in NotifyBreakpointHit() 179 *thread_sp, description, report)); in NotifyBreakpointHit()
|
| /openbsd-src/gnu/llvm/lldb/source/API/ |
| H A D | SBQueueItem.cpp | 100 ThreadSP thread_sp; in GetExtendedBacktraceThread() local 102 thread_sp = m_queue_item_sp->GetExtendedBacktraceThread(type_const); in GetExtendedBacktraceThread() 103 if (thread_sp) { in GetExtendedBacktraceThread() 106 process_sp->GetExtendedThreadList().AddThread(thread_sp); in GetExtendedBacktraceThread() 107 result.SetThread(thread_sp); in GetExtendedBacktraceThread()
|
| H A D | SBQueue.cpp | 98 ThreadSP thread_sp = thread_list[idx]; in FetchThreads() local 99 if (thread_sp && thread_sp->IsValid()) { in FetchThreads() 100 m_threads.push_back(thread_sp); in FetchThreads() 147 ThreadSP thread_sp = m_threads[idx].lock(); in GetThreadAtIndex() local 148 if (thread_sp) { in GetThreadAtIndex() 149 sb_thread.SetThread(thread_sp); in GetThreadAtIndex()
|
| H A D | SBThread.cpp | 379 ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); in GetThreadID() local 380 if (thread_sp) in GetThreadID() 381 return thread_sp->GetID(); in GetThreadID() 388 ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); in GetIndexID() local 389 if (thread_sp) in GetIndexID() 390 return thread_sp->GetIndexID(); in GetIndexID() 1278 ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); in GetExtendedBacktraceOriginatingIndexID() local 1279 if (thread_sp) in GetExtendedBacktraceOriginatingIndexID() 1280 return thread_sp->GetExtendedBacktraceOriginatingIndexID(); in GetExtendedBacktraceOriginatingIndexID() 1287 ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); in GetCurrentException() local [all …]
|
| H A D | SBExecutionContext.cpp | 106 ThreadSP thread_sp(m_exe_ctx_sp->GetThreadSP()); in GetThread() local 107 if (thread_sp) in GetThread() 108 sb_thread.SetThread(thread_sp); in GetThread()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/InstrumentationRuntime/UBSan/ |
| H A D | InstrumentationRuntimeUBSan.cpp | 111 ThreadSP thread_sp = exe_ctx_ref.GetThreadSP(); in RetrieveReportData() local 112 StackFrameSP frame_sp = thread_sp->GetSelectedFrame(); in RetrieveReportData() 150 for (unsigned I = 0; I < thread_sp->GetStackFrameCount(); ++I) { in RetrieveReportData() 151 const Address FCA = thread_sp->GetStackFrameAtIndex(I) in RetrieveReportData() 177 d->AddIntegerItem("tid", thread_sp->GetID()); in RetrieveReportData() 211 ThreadSP thread_sp = context->exe_ctx_ref.GetThreadSP(); in NotifyBreakpointHit() local 212 if (!process_sp || !thread_sp || in NotifyBreakpointHit() 223 thread_sp->SetStopInfo( in NotifyBreakpointHit() 225 *thread_sp, GetStopReasonDescription(report), report)); in NotifyBreakpointHit()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/Utility/ |
| H A D | RegisterContextThreadMemory.cpp | 28 ThreadSP thread_sp(m_thread_wp.lock()); in UpdateRegisterContext() local 29 if (thread_sp) { in UpdateRegisterContext() 30 ProcessSP process_sp(thread_sp->GetProcess()); in UpdateRegisterContext() 39 ThreadSP backing_thread_sp(thread_sp->GetBackingThread()); in UpdateRegisterContext() 44 if (os->IsOperatingSystemPluginThread(thread_sp)) in UpdateRegisterContext() 46 thread_sp.get(), m_register_data_addr); in UpdateRegisterContext()
|
| H A D | ThreadMemory.h | 77 bool SetBackingThread(const lldb::ThreadSP &thread_sp) override { in SetBackingThread() argument 80 m_backing_thread_sp = thread_sp; in SetBackingThread() 81 return (bool)thread_sp; in SetBackingThread()
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Target/ |
| H A D | ThreadCollection.h | 35 void AddThread(const lldb::ThreadSP &thread_sp); 37 void AddThreadSortedByIndexID(const lldb::ThreadSP &thread_sp); 39 void InsertThread(const lldb::ThreadSP &thread_sp, uint32_t idx);
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/InstrumentationRuntime/ASan/ |
| H A D | InstrumentationRuntimeASan.cpp | 114 ThreadSP thread_sp = in RetrieveReportData() local 116 StackFrameSP frame_sp = thread_sp->GetSelectedFrame(); in RetrieveReportData() 260 ThreadSP thread_sp = context->exe_ctx_ref.GetThreadSP(); in NotifyBreakpointHit() local 261 if (thread_sp) in NotifyBreakpointHit() 262 thread_sp->SetStopInfo(InstrumentationRuntimeStopInfo:: in NotifyBreakpointHit() 264 *thread_sp, description, report)); in NotifyBreakpointHit()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | ProcessGDBRemote.cpp | 1509 ThreadSP thread_sp( in DoUpdateThreadList() local 1511 if (!thread_sp) { in DoUpdateThreadList() 1512 thread_sp = std::make_shared<ThreadGDBRemote>(*this, tid); in DoUpdateThreadList() 1514 thread_sp.get(), thread_sp->GetID()); in DoUpdateThreadList() 1517 thread_sp.get(), thread_sp->GetID()); in DoUpdateThreadList() 1520 SetThreadPc(thread_sp, i); in DoUpdateThreadList() 1521 new_thread_list.AddThreadSortedByIndexID(thread_sp); in DoUpdateThreadList() 1539 void ProcessGDBRemote::SetThreadPc(const ThreadSP &thread_sp, uint64_t index) { in SetThreadPc() argument 1540 if (m_thread_ids.size() == m_thread_pcs.size() && thread_sp.get() && in SetThreadPc() 1543 static_cast<ThreadGDBRemote *>(thread_sp.get()); in SetThreadPc() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/MacOSX-Kernel/ |
| H A D | ProcessKDP.cpp | 488 ThreadSP thread_sp(m_kernel_thread_wp.lock()); in GetKernelThread() local 489 if (!thread_sp) { in GetKernelThread() 490 thread_sp = std::make_shared<ThreadKDP>(*this, g_kernel_tid); in GetKernelThread() 491 m_kernel_thread_wp = thread_sp; in GetKernelThread() 493 return thread_sp; in GetKernelThread() 504 ThreadSP thread_sp( in DoUpdateThreadList() local 506 if (!thread_sp) in DoUpdateThreadList() 507 thread_sp = GetKernelThread(); in DoUpdateThreadList() 508 new_thread_list.AddThread(thread_sp); in DoUpdateThreadList() 791 ThreadSP thread_sp(GetKernelThread()); in AsyncThread() local [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/SystemRuntime/MacOSX/ |
| H A D | SystemRuntimeMacOSX.cpp | 222 bool SystemRuntimeMacOSX::SafeToCallFunctionsOnThisThread(ThreadSP thread_sp) { in SafeToCallFunctionsOnThisThread() argument 223 if (thread_sp && thread_sp->GetStackFrameCount() > 0 && in SafeToCallFunctionsOnThisThread() 224 thread_sp->GetFrameWithConcreteFrameIndex(0)) { in SafeToCallFunctionsOnThisThread() 226 thread_sp->GetFrameWithConcreteFrameIndex(0)->GetSymbolContext( in SafeToCallFunctionsOnThisThread() 757 for (ThreadSP thread_sp : m_process->Threads()) { in PopulateQueueList() local 758 if (thread_sp->GetAssociatedWithLibdispatchQueue() != eLazyBoolNo) { in PopulateQueueList() 759 if (thread_sp->GetQueueID() != LLDB_INVALID_QUEUE_ID) { in PopulateQueueList() 760 if (queue_list.FindQueueByID(thread_sp->GetQueueID()).get() == in PopulateQueueList() 763 thread_sp->GetQueueID(), in PopulateQueueList() 764 thread_sp->GetQueueName())); in PopulateQueueList() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Commands/ |
| H A D | CommandObjectThread.cpp | 205 ThreadSP thread_sp = in HandleOneThread() local 207 if (!thread_sp) { in HandleOneThread() 214 Thread *thread = thread_sp.get(); in HandleOneThread() 1305 ThreadSP thread_sp = in HandleOneThread() local 1307 if (!thread_sp) { in HandleOneThread() 1313 Thread *thread = thread_sp.get(); in HandleOneThread() 1353 ThreadSP thread_sp = in HandleOneThread() local 1355 if (!thread_sp) { in HandleOneThread() 1362 ValueObjectSP exception_object_sp = thread_sp->GetCurrentException(); in HandleOneThread() 1367 ThreadSP exception_thread_sp = thread_sp->GetCurrentExceptionBacktrace(); in HandleOneThread() [all …]
|