| /llvm-project-15.0.7/lldb/tools/debugserver/source/MacOSX/ |
| H A D | MachThreadList.cpp | 33 if (thread_sp) in GetState() 40 if (thread_sp) in GetName() 49 if (thread_sp) in GetRequestedQoS() 56 if (thread_sp) in GetPThreadT() 63 if (thread_sp) in GetDispatchQueueT() 72 if (thread_sp) in GetTSDAddressForThread() 91 if (thread_sp) in GetThreadStoppedReason() 107 if (thread_sp) in DumpThreadStoppedReason() 113 if (thread_sp) in GetThreadInfo() 175 if (thread_sp) in GetRegisterValue() [all …]
|
| /llvm-project-15.0.7/lldb/source/Target/ |
| H A D | ThreadList.cpp | 97 ThreadSP thread_sp; in GetThreadAtIndex() local 100 return thread_sp; in GetThreadAtIndex() 109 ThreadSP thread_sp; in FindThreadByID() local 118 return thread_sp; in FindThreadByID() 136 return thread_sp; in FindThreadByProtocolID() 155 return thread_sp; in RemoveThreadByID() 175 return thread_sp; in RemoveThreadByProtocolID() 192 return thread_sp; in GetThreadSPForThreadPtr() 206 return thread_sp; in GetBackingThread() 223 return thread_sp; in FindThreadByIndexID() [all …]
|
| H A D | StopInfo.cpp | 40 if (thread_sp) in IsValid() 47 if (thread_sp) { in MakeStopInfoValid() 56 if (thread_sp) { in HasTargetRunSinceMe() 107 if (thread_sp) { in StoreBPInfo() 149 if (thread_sp) { in ShouldStopSynchronous() 262 if (thread_sp) { in PerformAction() 969 if (thread_sp) in ShouldStopSynchronous() 976 if (thread_sp) in ShouldStop() 1146 if (thread_sp) in ShouldStop() 1162 if (thread_sp) in PerformAction() [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() 32 const uint32_t thread_index_id = thread_sp->GetIndexID(); in AddThreadSortedByIndexID() 34 m_threads.push_back(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() 61 ThreadSP thread_sp; in GetThreadAtIndex() local 63 thread_sp = m_threads[idx]; in GetThreadAtIndex() [all …]
|
| H A D | ExecutionContext.cpp | 39 if (thread_sp) in ExecutionContext() 40 SetContext(thread_sp); in ExecutionContext() 67 if (thread_sp) in ExecutionContext() 312 if (thread_sp) { in SetContext() 436 if (thread_sp) in operator =() 472 if (thread_sp) { in SetThreadSP() 581 if (!thread_sp || !thread_sp->IsValid()) { in GetThreadSP() 593 if (thread_sp && !thread_sp->IsValid()) in GetThreadSP() 594 thread_sp.reset(); in GetThreadSP() 596 return thread_sp; in GetThreadSP() [all …]
|
| H A D | ThreadPlanStack.cpp | 425 ThreadSP thread_sp = current_threads.FindThreadByID(cur_tid); in Update() local 426 if (!thread_sp) in Update() 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() 516 ThreadSP thread_sp = m_process.GetThreadList().FindThreadByID(tid); in PrunePlansForTID() local [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 | StackFrame.cpp | 175 ThreadSP thread_sp = GetThread(); in GetFrameIndex() local 176 if (thread_sp) in GetFrameIndex() 197 ThreadSP thread_sp(GetThread()); in GetFrameCodeAddress() local 198 if (thread_sp) { in GetFrameCodeAddress() 254 ThreadSP thread_sp(GetThread()); in ChangePC() local 255 if (thread_sp) in ChangePC() 256 thread_sp->ClearStackFrames(); in ChangePC() 1134 if (thread_sp) in GetRegisterContext() 1748 ThreadSP thread_sp(GetThread()); in CalculateTarget() local 1749 if (thread_sp) { in CalculateTarget() [all …]
|
| 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()
|
| /llvm-project-15.0.7/lldb/source/Plugins/OperatingSystem/Python/ |
| H A D | OperatingSystemPython.cpp | 195 if (thread_sp) in UpdateThreadList() 196 new_thread_list.AddThread(thread_sp); in UpdateThreadList() 220 ThreadSP thread_sp; in CreateThreadFromThreadInfo() local 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() 274 return thread_sp; in CreateThreadFromThreadInfo() 399 ThreadSP thread_sp( in CreateThread() local 403 thread_list.AddThread(thread_sp); in CreateThread() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Process/ |
| H A D | ProcessEventDataTest.cpp | 123 if (thread_sp == nullptr) { in CreateThread() 129 std::make_shared<DummyStopInfo>(*thread_sp.get(), 0); in CreateThread() 136 thread_sp->SetStopInfo(stopinfo_sp); in CreateThread() 139 process_sp->GetThreadList().AddThread(thread_sp); in CreateThread() 141 return thread_sp; in CreateThread() 200 ThreadSP thread_sp = CreateThread(process_sp, true, true); in TEST_F() local 217 thread_sp->SetResumeState(eStateSuspended); in TEST_F() 234 thread_sp = CreateThread(process_sp, false, true); in TEST_F() 237 thread_sp = CreateThread(process_sp, true, true); in TEST_F() 238 thread_sp->SetResumeState(eStateSuspended); in TEST_F() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Thread/ |
| H A D | ThreadTest.cpp | 111 ThreadSP thread_sp = std::make_shared<DummyThread>(*process_sp.get(), 0); in TEST_F() local 112 ASSERT_TRUE(thread_sp); in TEST_F() 115 StopInfo::CreateStopReasonWithBreakpointSiteID(*thread_sp.get(), 0); in TEST_F() 124 thread_sp->SetStopInfo(stopinfo_sp); in TEST_F() 146 ThreadSP thread_sp = std::make_shared<DummyThread>(*process_sp.get(), 0); in TEST_F() local 147 ASSERT_TRUE(thread_sp); in TEST_F() 150 StopInfo::CreateStopReasonWithBreakpointSiteID(*thread_sp.get(), 0); in TEST_F() 153 thread_sp->SetStopInfo(stopinfo_sp); in TEST_F() 160 StopInfoSP new_stopinfo_sp = thread_sp->GetPrivateStopInfo(); in TEST_F()
|
| /llvm-project-15.0.7/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 | 380 if (thread_sp) in GetThreadID() 381 return thread_sp->GetID(); in GetThreadID() 389 if (thread_sp) in GetIndexID() 390 return thread_sp->GetIndexID(); in GetIndexID() 1279 if (thread_sp) in GetExtendedBacktraceOriginatingIndexID() 1288 if (!thread_sp) in GetCurrentException() 1298 if (!thread_sp) in GetCurrentExceptionBacktrace() 1308 if (thread_sp) in SafeToCallFunctions() 1309 return thread_sp->SafeToCallFunctions(); in SafeToCallFunctions() 1325 if (!thread_sp) in GetSiginfo() [all …]
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/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);
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | ProcessGDBRemote.cpp | 1549 ThreadSP thread_sp( in DoUpdateThreadList() local 1551 if (!thread_sp) { in DoUpdateThreadList() 1554 thread_sp.get(), thread_sp->GetID()); in DoUpdateThreadList() 1557 thread_sp.get(), thread_sp->GetID()); in DoUpdateThreadList() 1560 SetThreadPc(thread_sp, i); in DoUpdateThreadList() 1655 ThreadSP thread_sp; in SetThreadStopInfo() local 1666 if (!thread_sp) { in SetThreadStopInfo() 1673 if (thread_sp) { in SetThreadStopInfo() 1739 thread_sp->SetStopInfo( in SetThreadStopInfo() 1825 thread_sp->SetStopInfo( in SetThreadStopInfo() [all …]
|
| /llvm-project-15.0.7/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() 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 792 if (thread_sp) { in AsyncThread() [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/SystemRuntime/MacOSX/ |
| H A D | SystemRuntimeMacOSX.cpp | 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() 716 for (ThreadSP thread_sp : m_process->Threads()) { in PopulateQueueList() local 718 if (thread_sp->GetQueueID() != LLDB_INVALID_QUEUE_ID) { in PopulateQueueList() 722 thread_sp->GetQueueID(), in PopulateQueueList() 723 thread_sp->GetQueueName())); in PopulateQueueList() 724 if (thread_sp->ThreadHasQueueInformation()) { in PopulateQueueList() 725 queue_sp->SetKind(thread_sp->GetQueueKind()); in PopulateQueueList() 727 thread_sp->GetQueueLibdispatchQueueAddress()); in PopulateQueueList() [all …]
|