| /freebsd/contrib/llvm-project/lldb/source/Target/ |
| H A D | ThreadList.cpp | 96 ThreadSP thread_sp; in GetThreadAtIndex() local 98 thread_sp = m_threads[idx]; in GetThreadAtIndex() 99 return thread_sp; in GetThreadAtIndex() 108 ThreadSP thread_sp; in FindThreadByID() local 113 thread_sp = m_threads[idx]; in FindThreadByID() 117 return thread_sp; in FindThreadByID() 126 ThreadSP thread_sp; in FindThreadByProtocolID() local 131 thread_sp = m_threads[idx]; in FindThreadByProtocolID() 135 return thread_sp; in FindThreadByProtocolID() 144 ThreadSP thread_sp; in RemoveThreadByID() local [all …]
|
| H A D | StopInfo.cpp | 42 ThreadSP thread_sp(m_thread_wp.lock()); in IsValid() local 43 if (thread_sp) in IsValid() 44 return thread_sp->GetProcess()->GetStopID() == m_stop_id; in IsValid() 49 ThreadSP thread_sp(m_thread_wp.lock()); in MakeStopInfoValid() local 50 if (thread_sp) { in MakeStopInfoValid() 51 m_stop_id = thread_sp->GetProcess()->GetStopID(); in MakeStopInfoValid() 52 m_resume_id = thread_sp->GetProcess()->GetResumeID(); in MakeStopInfoValid() 57 ThreadSP thread_sp(m_thread_wp.lock()); in HasTargetRunSinceMe() local 59 if (thread_sp) { in HasTargetRunSinceMe() 60 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() 253 void ExecutionContext::SetThreadSP(const lldb::ThreadSP &thread_sp) { in SetThreadSP() argument 254 m_thread_sp = thread_sp; in SetThreadSP() 310 void ExecutionContext::SetContext(const lldb::ThreadSP &thread_sp) { in SetContext() argument 312 m_thread_sp = thread_sp; in SetContext() [all …]
|
| H A D | InstrumentationRuntimeStopInfo.cpp | 48 ThreadSP thread_sp = GetThread(); in GetSuggestedStackFrameIndex() local 49 if (!thread_sp) in GetSuggestedStackFrameIndex() 59 thread_sp->GetStackFrameAtIndex(stack_idx); in GetSuggestedStackFrameIndex() 70 if (!IsStoppedInDarwinSanitizer(*thread_sp, *sc.module_sp)) in GetSuggestedStackFrameIndex() 74 most_relevant_frame_sp = thread_sp->GetStackFrameAtIndex(stack_idx); in GetSuggestedStackFrameIndex()
|
| H A D | ThreadPlanStack.cpp | 435 ThreadSP thread_sp = current_threads.FindThreadByID(cur_tid); in Update() local 436 if (!thread_sp) in Update() 452 ThreadSP thread_sp = m_process.GetThreadList().FindThreadByID(tid); in DumpPlans() local 455 if (!thread_sp) in DumpPlans() 458 if (thread_sp) in DumpPlans() 459 index_id = thread_sp->GetIndexID(); in DumpPlans() 487 ThreadSP thread_sp = m_process.GetThreadList().FindThreadByID(tid); in DumpPlansForTID() local 490 if (!thread_sp) { in DumpPlansForTID() 496 if (thread_sp) in DumpPlansForTID() 497 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 | 124 ThreadSP thread_sp = frame_sp->GetThread(); in RecognizeFrame() local 125 ProcessSP process_sp = thread_sp->GetProcess(); in RecognizeFrame() 139 prev_frame_sp = thread_sp->GetStackFrameAtIndex(frame_index); in RecognizeFrame() 163 StackFrameSP most_relevant_frame_sp = thread_sp->GetStackFrameAtIndex( in RecognizeFrame()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/OperatingSystem/Python/ |
| H A D | OperatingSystemPython.cpp | 201 ThreadSP thread_sp(CreateThreadFromThreadInfo( in UpdateThreadList() local 204 if (thread_sp) in UpdateThreadList() 205 new_thread_list.AddThread(thread_sp); in UpdateThreadList() 229 ThreadSP thread_sp; in CreateThreadFromThreadInfo() local 246 thread_sp = old_thread_list.FindThreadByID(tid, false); in CreateThreadFromThreadInfo() 247 if (thread_sp) { in CreateThreadFromThreadInfo() 251 if (!IsOperatingSystemPluginThread(thread_sp)) { in CreateThreadFromThreadInfo() 255 thread_sp.reset(); in CreateThreadFromThreadInfo() 259 if (!thread_sp) { in CreateThreadFromThreadInfo() 262 thread_sp = std::make_shared<ThreadMemoryProvidingNameAndQueue>( in CreateThreadFromThreadInfo() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Symbol/ |
| H A D | SaveCoreOptions.cpp | 83 Status SaveCoreOptions::AddThread(lldb::ThreadSP thread_sp) { in AddThread() argument 85 if (!thread_sp) { in AddThread() 91 if (m_process_sp != thread_sp->GetProcess()) { in AddThread() 97 m_process_sp = thread_sp->GetProcess(); in AddThread() 100 m_threads_to_save.insert(thread_sp->GetID()); in AddThread() 104 bool SaveCoreOptions::RemoveThread(lldb::ThreadSP thread_sp) { in RemoveThread() argument 105 return thread_sp && m_threads_to_save.erase(thread_sp->GetID()) > 0; in RemoveThread()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/ |
| H A D | InstrumentationRuntimeMainThreadChecker.cpp | 83 ThreadSP thread_sp = exe_ctx_ref.GetThreadSP(); in RetrieveReportData() local 85 thread_sp->GetSelectedFrame(DoNoSelectMostRelevantFrame); in RetrieveReportData() 124 for (unsigned I = 0; I < thread_sp->GetStackFrameCount(); ++I) { in RetrieveReportData() 125 StackFrameSP frame = thread_sp->GetStackFrameAtIndex(I); in RetrieveReportData() 146 d->AddIntegerItem("tid", thread_sp->GetIndexID()); in RetrieveReportData() 162 ThreadSP thread_sp = context->exe_ctx_ref.GetThreadSP(); in NotifyBreakpointHit() local 163 if (!process_sp || !thread_sp || in NotifyBreakpointHit() 178 thread_sp->SetStopInfo( in NotifyBreakpointHit() 180 *thread_sp, description, report)); in NotifyBreakpointHit()
|
| /freebsd/contrib/llvm-project/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 | 96 ThreadSP thread_sp = thread_list[idx]; in FetchThreads() local 97 if (thread_sp && thread_sp->IsValid()) { in FetchThreads() 98 m_threads.push_back(thread_sp); in FetchThreads() 145 ThreadSP thread_sp = m_threads[idx].lock(); in GetThreadAtIndex() local 146 if (thread_sp) { in GetThreadAtIndex() 147 sb_thread.SetThread(thread_sp); in GetThreadAtIndex()
|
| H A D | SBThread.cpp | 387 ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); in GetThreadID() local 388 if (thread_sp) in GetThreadID() 389 return thread_sp->GetID(); in GetThreadID() 396 ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); in GetIndexID() local 397 if (thread_sp) in GetIndexID() 398 return thread_sp->GetIndexID(); in GetIndexID() 1314 ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); in GetExtendedBacktraceOriginatingIndexID() local 1315 if (thread_sp) in GetExtendedBacktraceOriginatingIndexID() 1316 return thread_sp->GetExtendedBacktraceOriginatingIndexID(); in GetExtendedBacktraceOriginatingIndexID() 1323 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()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/UBSan/ |
| H A D | InstrumentationRuntimeUBSan.cpp | 110 ThreadSP thread_sp = exe_ctx_ref.GetThreadSP(); in RetrieveReportData() local 112 thread_sp->GetSelectedFrame(DoNoSelectMostRelevantFrame); in RetrieveReportData() 148 for (unsigned I = 0; I < thread_sp->GetStackFrameCount(); ++I) { in RetrieveReportData() 149 const Address FCA = thread_sp->GetStackFrameAtIndex(I) in RetrieveReportData() 175 d->AddIntegerItem("tid", thread_sp->GetID()); in RetrieveReportData() 209 ThreadSP thread_sp = context->exe_ctx_ref.GetThreadSP(); in NotifyBreakpointHit() local 210 if (!process_sp || !thread_sp || in NotifyBreakpointHit() 221 thread_sp->SetStopInfo( in NotifyBreakpointHit() 223 *thread_sp, GetStopReasonDescription(report), report)); in NotifyBreakpointHit()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/ |
| H A D | RegisterContextThreadMemory.cpp | 30 ThreadSP thread_sp(m_thread_wp.lock()); in UpdateRegisterContext() local 31 if (thread_sp) { in UpdateRegisterContext() 32 ProcessSP process_sp(thread_sp->GetProcess()); in UpdateRegisterContext() 41 ThreadSP backing_thread_sp(thread_sp->GetBackingThread()); in UpdateRegisterContext() 46 if (os->IsOperatingSystemPluginThread(thread_sp)) in UpdateRegisterContext() 48 thread_sp.get(), m_register_data_addr); in UpdateRegisterContext()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/Utility/ |
| H A D | ReportRetriever.cpp | 64 ThreadSP thread_sp = in RetrieveReportData() local 67 if (!thread_sp) in RetrieveReportData() 71 thread_sp->GetSelectedFrame(DoNoSelectMostRelevantFrame); in RetrieveReportData() 215 if (ThreadSP thread_sp = context->exe_ctx_ref.GetThreadSP()) in NotifyBreakpointHit() local 216 thread_sp->SetStopInfo( in NotifyBreakpointHit() 218 *thread_sp, description, report)); in NotifyBreakpointHit()
|
| /freebsd/contrib/llvm-project/lldb/include/lldb/Target/ |
| H A D | ThreadCollection.h | 34 void AddThread(const lldb::ThreadSP &thread_sp); 36 void AddThreadSortedByIndexID(const lldb::ThreadSP &thread_sp); 38 void InsertThread(const lldb::ThreadSP &thread_sp, uint32_t idx);
|
| H A D | ExecutionContext.h | 182 void SetThreadSP(const lldb::ThreadSP &thread_sp); 306 ExecutionContext(const lldb::ThreadSP &thread_sp); 478 void SetThreadSP(const lldb::ThreadSP &thread_sp); 517 void SetContext(const lldb::ThreadSP &thread_sp);
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/ASan/ |
| H A D | InstrumentationRuntimeASan.cpp | 114 ThreadSP thread_sp = RetrieveReportData() local 261 ThreadSP thread_sp = context->exe_ctx_ref.GetThreadSP(); NotifyBreakpointHit() local
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | ProcessGDBRemote.cpp | 1594 ThreadSP thread_sp( in DoUpdateThreadList() local 1596 if (!thread_sp) { in DoUpdateThreadList() 1597 thread_sp = std::make_shared<ThreadGDBRemote>(*this, tid); in DoUpdateThreadList() 1599 thread_sp.get(), thread_sp->GetID()); in DoUpdateThreadList() 1602 thread_sp.get(), thread_sp->GetID()); in DoUpdateThreadList() 1605 SetThreadPc(thread_sp, i); in DoUpdateThreadList() 1606 new_thread_list.AddThreadSortedByIndexID(thread_sp); in DoUpdateThreadList() 1624 void ProcessGDBRemote::SetThreadPc(const ThreadSP &thread_sp, uint64_t index) { in SetThreadPc() argument 1625 if (m_thread_ids.size() == m_thread_pcs.size() && thread_sp.get() && in SetThreadPc() 1628 static_cast<ThreadGDBRemote *>(thread_sp.get()); in SetThreadPc() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Commands/ |
| H A D | CommandObjectThread.cpp | 220 ThreadSP thread_sp = in HandleOneThread() local 222 if (!thread_sp) { in HandleOneThread() 229 Thread *thread = thread_sp.get(); in HandleOneThread() 1334 ThreadSP thread_sp = in HandleOneThread() local 1336 if (!thread_sp) { in HandleOneThread() 1342 Thread *thread = thread_sp.get(); in HandleOneThread() 1384 ThreadSP thread_sp = in HandleOneThread() local 1386 if (!thread_sp) { in HandleOneThread() 1393 ValueObjectSP exception_object_sp = thread_sp->GetCurrentException(); in HandleOneThread() 1401 ThreadSP exception_thread_sp = thread_sp->GetCurrentExceptionBacktrace(); in HandleOneThread() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | TraceIntelPTBundleLoader.cpp | 87 ThreadPostMortemTraceSP thread_sp = in ParseThread() local 89 process.GetThreadList().AddThread(thread_sp); in ParseThread() 90 return thread_sp; in ParseThread() 159 ThreadPostMortemTraceSP thread_sp = std::make_shared<ThreadPostMortemTrace>( in ParseKernel() local 161 thread_sp->SetName(formatv("kernel_cpu_{0}", cpu.id).str().c_str()); in ParseKernel() 162 process_sp->GetThreadList().AddThread(thread_sp); in ParseKernel() 163 parsed_process->threads.push_back(thread_sp); in ParseKernel()
|