/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 | 41 ThreadSP thread_sp(m_thread_wp.lock()); in IsValid() local 42 if (thread_sp) in IsValid() 43 return thread_sp->GetProcess()->GetStopID() == m_stop_id; in IsValid() 48 ThreadSP thread_sp(m_thread_wp.lock()); in MakeStopInfoValid() local 49 if (thread_sp) { in MakeStopInfoValid() 50 m_stop_id = thread_sp->GetProcess()->GetStopID(); in MakeStopInfoValid() 51 m_resume_id = thread_sp->GetProcess()->GetResumeID(); in MakeStopInfoValid() 56 ThreadSP thread_sp(m_thread_wp.lock()); in HasTargetRunSinceMe() local 58 if (thread_sp) { in HasTargetRunSinceMe() 59 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 | 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 | 122 ThreadSP thread_sp = frame_sp->GetThread(); in RecognizeFrame() local 123 ProcessSP process_sp = thread_sp->GetProcess(); in RecognizeFrame() 137 prev_frame_sp = thread_sp->GetStackFrameAtIndex(frame_index); in RecognizeFrame() 161 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 …]
|
H A D | VerboseTrapFrameRecognizer.cpp | 30 ThreadSP thread_sp = frame_sp->GetThread(); in RecognizeFrame() local 31 ProcessSP process_sp = thread_sp->GetProcess(); in RecognizeFrame() 33 StackFrameSP most_relevant_frame_sp = thread_sp->GetStackFrameAtIndex(1); 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<ThreadMemory>(*m_process, tid, name, queue, in CreateThreadFromThreadInfo() [all …]
|
/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 | 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() 1299 ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); in GetExtendedBacktraceOriginatingIndexID() local 1300 if (thread_sp) in GetExtendedBacktraceOriginatingIndexID() 1301 return thread_sp->GetExtendedBacktraceOriginatingIndexID(); in GetExtendedBacktraceOriginatingIndexID() 1308 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() 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()
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/Utility/ |
H A D | ReportRetriever.cpp | 63 ThreadSP thread_sp = in RetrieveReportData() local 66 if (!thread_sp) in RetrieveReportData() 70 thread_sp->GetSelectedFrame(DoNoSelectMostRelevantFrame); in RetrieveReportData() 208 if (ThreadSP thread_sp = context->exe_ctx_ref.GetThreadSP()) in NotifyBreakpointHit() local 209 thread_sp->SetStopInfo( in NotifyBreakpointHit() 211 *thread_sp, description, report)); in NotifyBreakpointHit()
|
/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/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);
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
H A D | ProcessGDBRemote.cpp | 1517 ThreadSP thread_sp( in DoUpdateThreadList() local 1519 if (!thread_sp) { in DoUpdateThreadList() 1520 thread_sp = std::make_shared<ThreadGDBRemote>(*this, tid); in DoUpdateThreadList() 1522 thread_sp.get(), thread_sp->GetID()); in DoUpdateThreadList() 1525 thread_sp.get(), thread_sp->GetID()); in DoUpdateThreadList() 1528 SetThreadPc(thread_sp, i); in DoUpdateThreadList() 1529 new_thread_list.AddThreadSortedByIndexID(thread_sp); in DoUpdateThreadList() 1547 void ProcessGDBRemote::SetThreadPc(const ThreadSP &thread_sp, uint64_t index) { in SetThreadPc() argument 1548 if (m_thread_ids.size() == m_thread_pcs.size() && thread_sp.get() && in SetThreadPc() 1551 static_cast<ThreadGDBRemote *>(thread_sp.get()); in SetThreadPc() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectThread.cpp | 211 ThreadSP thread_sp = in HandleOneThread() local 213 if (!thread_sp) { in HandleOneThread() 220 Thread *thread = thread_sp.get(); in HandleOneThread() 1330 ThreadSP thread_sp = in HandleOneThread() local 1332 if (!thread_sp) { in HandleOneThread() 1338 Thread *thread = thread_sp.get(); in HandleOneThread() 1378 ThreadSP thread_sp = in HandleOneThread() local 1380 if (!thread_sp) { in HandleOneThread() 1387 ValueObjectSP exception_object_sp = thread_sp->GetCurrentException(); in HandleOneThread() 1395 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() 89 process.GetThreadList().AddThread(thread_sp); in ParseThread() 90 return thread_sp; in ParseThread() 159 ThreadPostMortemTraceSP thread_sp = std::make_shared<ThreadPostMortemTrace>( in ParseKernel() 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() 86 ThreadPostMortemTraceSP thread_sp = ParseThread() local 157 ThreadPostMortemTraceSP thread_sp = std::make_shared<ThreadPostMortemTrace>( ParseKernel() local
|