Home
last modified time | relevance | path

Searched refs:thread_sp (Results 1 – 25 of 56) sorted by relevance

123

/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Process/Darwin/
H A DNativeThreadListDarwin.cpp46 if (thread_sp)
55 if (thread_sp)
67 if (thread_sp)
76 if (thread_sp)
85 if (thread_sp)
94 if (thread_sp)
106 if (thread_sp)
119 if (thread_sp)
137 if (thread_sp)
156 if (thread_sp && (thread_sp->GetID() == tid)) in GetThreadByID()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/source/Target/
H A DThreadList.cpp95 ThreadSP thread_sp; in GetThreadAtIndex() local
98 return thread_sp; in GetThreadAtIndex()
107 ThreadSP thread_sp; in FindThreadByID() local
116 return thread_sp; in FindThreadByID()
125 ThreadSP thread_sp; in FindThreadByProtocolID() local
134 return thread_sp; in FindThreadByProtocolID()
153 return thread_sp; in RemoveThreadByID()
173 return thread_sp; in RemoveThreadByProtocolID()
190 return thread_sp; in GetThreadSPForThreadPtr()
204 return thread_sp; in GetBackingThread()
[all …]
H A DStopInfo.cpp40 if (thread_sp) in IsValid()
47 if (thread_sp) { in MakeStopInfoValid()
56 if (thread_sp) { in HasTargetRunSinceMe()
109 if (thread_sp) { in StoreBPInfo()
140 if (thread_sp) { in ShouldStopSynchronous()
169 if (thread_sp) { in DoShouldNotify()
269 if (thread_sp) { in PerformAction()
933 if (thread_sp) in ShouldStopSynchronous()
940 if (thread_sp) in ShouldStop()
1095 if (thread_sp) in ShouldStop()
[all …]
H A DThreadCollection.cpp25 void ThreadCollection::AddThread(const ThreadSP &thread_sp) { in AddThread() argument
27 m_threads.push_back(thread_sp); in AddThread()
33 const uint32_t thread_index_id = thread_sp->GetIndexID(); in AddThreadSortedByIndexID()
35 m_threads.push_back(thread_sp); in AddThreadSortedByIndexID()
42 thread_sp); in AddThreadSortedByIndexID()
46 void ThreadCollection::InsertThread(const lldb::ThreadSP &thread_sp, in InsertThread() argument
50 m_threads.insert(m_threads.begin() + idx, thread_sp); in InsertThread()
52 m_threads.push_back(thread_sp); in InsertThread()
62 ThreadSP thread_sp; in GetThreadAtIndex() local
64 thread_sp = m_threads[idx]; in GetThreadAtIndex()
[all …]
H A DExecutionContext.cpp42 if (thread_sp) in ExecutionContext()
43 SetContext(thread_sp); in ExecutionContext()
70 if (thread_sp) in ExecutionContext()
323 if (thread_sp) { in SetContext()
452 if (thread_sp) in operator =()
488 if (thread_sp) { in SetThreadSP()
597 if (!thread_sp || !thread_sp->IsValid()) { in GetThreadSP()
609 if (thread_sp && !thread_sp->IsValid()) in GetThreadSP()
610 thread_sp.reset(); in GetThreadSP()
612 return thread_sp; in GetThreadSP()
[all …]
H A DOperatingSystem.cpp51 const lldb::ThreadSP &thread_sp) { in IsOperatingSystemPluginThread() argument
52 if (thread_sp) in IsOperatingSystemPluginThread()
53 return thread_sp->IsOperatingSystemPluginThread(); in IsOperatingSystemPluginThread()
H A DStackFrame.cpp166 ThreadSP thread_sp = GetThread(); in GetFrameIndex() local
167 if (thread_sp) in GetFrameIndex()
188 ThreadSP thread_sp(GetThread()); in GetFrameCodeAddress() local
189 if (thread_sp) { in GetFrameCodeAddress()
216 ThreadSP thread_sp(GetThread()); in ChangePC() local
217 if (thread_sp) in ChangePC()
218 thread_sp->ClearStackFrames(); in ChangePC()
302 if (thread_sp) { in GetSymbolContext()
1121 if (thread_sp) in GetRegisterContext()
1757 if (thread_sp) { in CalculateTarget()
[all …]
H A DQueue.cpp45 for (ThreadSP thread_sp : process_sp->Threads()) { in GetThreads() local
46 if (thread_sp->GetQueueID() == m_queue_id) { in GetThreads()
47 result.push_back(thread_sp); in GetThreads()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/OperatingSystem/Python/
H A DOperatingSystemPython.cpp202 ThreadSP thread_sp( in UpdateThreadList() local
205 if (thread_sp) in UpdateThreadList()
230 ThreadSP thread_sp; in CreateThreadFromThreadInfo() local
248 if (thread_sp) { in CreateThreadFromThreadInfo()
256 thread_sp.reset(); in CreateThreadFromThreadInfo()
260 if (!thread_sp) { in CreateThreadFromThreadInfo()
263 thread_sp.reset( in CreateThreadFromThreadInfo()
284 return thread_sp; in CreateThreadFromThreadInfo()
409 ThreadSP thread_sp( in CreateThread() local
413 thread_list.AddThread(thread_sp); in CreateThread()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/source/API/
H A DSBQueueItem.cpp110 ThreadSP thread_sp; in GetExtendedBacktraceThread() local
112 thread_sp = m_queue_item_sp->GetExtendedBacktraceThread(type_const); in GetExtendedBacktraceThread()
113 if (thread_sp) { in GetExtendedBacktraceThread()
116 process_sp->GetExtendedThreadList().AddThread(thread_sp); in GetExtendedBacktraceThread()
117 result.SetThread(thread_sp); in GetExtendedBacktraceThread()
119 const char *queue_name = thread_sp->GetQueueName(); in GetExtendedBacktraceThread()
126 static_cast<void *>(thread_sp.get()), in GetExtendedBacktraceThread()
127 static_cast<uint64_t>(thread_sp->GetQueueID()), queue_name); in GetExtendedBacktraceThread()
H A DSBThread.cpp460 if (thread_sp) in GetThreadID()
461 return thread_sp->GetID(); in GetThreadID()
467 if (thread_sp) in GetIndexID()
468 return thread_sp->GetIndexID(); in GetIndexID()
1482 if (thread_sp) in GetExtendedBacktraceOriginatingIndexID()
1489 if (!thread_sp) return SBValue(); in GetCurrentException()
1503 if (thread_sp) in SafeToCallFunctions()
1510 if (thread_sp) in operator ->()
1511 return thread_sp.get(); in operator ->()
1518 if (thread_sp) in get()
[all …]
H A DSBQueue.cpp119 ThreadSP thread_sp = thread_list[idx]; in FetchThreads() local
120 if (thread_sp && thread_sp->IsValid()) { in FetchThreads()
121 m_threads.push_back(thread_sp); in FetchThreads()
168 ThreadSP thread_sp = m_threads[idx].lock(); in GetThreadAtIndex() local
169 if (thread_sp) { in GetThreadAtIndex()
170 sb_thread.SetThread(thread_sp); in GetThreadAtIndex()
H A DSBExecutionContext.cpp87 ThreadSP thread_sp(m_exe_ctx_sp->GetThreadSP()); in GetThread() local
88 if (thread_sp) in GetThread()
89 sb_thread.SetThread(thread_sp); in GetThread()
H A DSBProcess.cpp216 ThreadSP thread_sp; in GetSelectedThread() local
222 sb_thread.SetThread(thread_sp); in GetSelectedThread()
238 ThreadSP thread_sp; in CreateOSPluginThread() local
244 sb_thread.SetThread(thread_sp); in CreateOSPluginThread()
454 ThreadSP thread_sp; in GetThreadAtIndex() local
462 sb_thread.SetThread(thread_sp); in GetThreadAtIndex()
813 ThreadSP thread_sp; in GetThreadByID() local
821 sb_thread.SetThread(thread_sp); in GetThreadByID()
836 ThreadSP thread_sp; in GetThreadByIndexID() local
843 thread_sp = in GetThreadByIndexID()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/
H A DMainThreadCheckerRuntime.cpp78 ThreadSP thread_sp = exe_ctx_ref.GetThreadSP(); in RetrieveReportData() local
79 StackFrameSP frame_sp = thread_sp->GetSelectedFrame(); in RetrieveReportData()
118 for (unsigned I = 0; I < thread_sp->GetStackFrameCount(); ++I) { in RetrieveReportData()
119 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()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/UBSan/
H A DUBSanRuntime.cpp118 ThreadSP thread_sp = exe_ctx_ref.GetThreadSP(); in RetrieveReportData() local
119 StackFrameSP frame_sp = thread_sp->GetSelectedFrame(); in RetrieveReportData()
155 for (unsigned I = 0; I < thread_sp->GetStackFrameCount(); ++I) { in RetrieveReportData()
157 thread_sp->GetStackFrameAtIndex(I)->GetFrameCodeAddress(); in RetrieveReportData()
182 d->AddIntegerItem("tid", thread_sp->GetID()); in RetrieveReportData()
215 ThreadSP thread_sp = context->exe_ctx_ref.GetThreadSP(); in NotifyBreakpointHit() local
216 if (!process_sp || !thread_sp || in NotifyBreakpointHit()
227 thread_sp->SetStopInfo( in NotifyBreakpointHit()
229 *thread_sp, GetStopReasonDescription(report), report)); in NotifyBreakpointHit()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Process/Utility/
H A DRegisterContextThreadMemory.cpp29 ThreadSP thread_sp(m_thread_wp.lock()); in UpdateRegisterContext() local
30 if (thread_sp) { in UpdateRegisterContext()
31 ProcessSP process_sp(thread_sp->GetProcess()); in UpdateRegisterContext()
40 ThreadSP backing_thread_sp(thread_sp->GetBackingThread()); in UpdateRegisterContext()
45 if (os->IsOperatingSystemPluginThread(thread_sp)) in UpdateRegisterContext()
47 thread_sp.get(), m_register_data_addr); in UpdateRegisterContext()
H A DThreadMemory.h78 bool SetBackingThread(const lldb::ThreadSP &thread_sp) override { in SetBackingThread() argument
81 m_backing_thread_sp = thread_sp; in SetBackingThread()
82 return (bool)thread_sp; in SetBackingThread()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/
H A DProcessGDBRemote.cpp1704 ThreadSP thread_sp( in UpdateThreadList() local
1706 if (!thread_sp) { in UpdateThreadList()
1709 thread_sp.get(), thread_sp->GetID()); in UpdateThreadList()
1712 thread_sp.get(), thread_sp->GetID()); in UpdateThreadList()
1715 SetThreadPc(thread_sp, i); in UpdateThreadList()
1810 ThreadSP thread_sp; in SetThreadStopInfo() local
1821 if (!thread_sp) { in SetThreadStopInfo()
1828 if (thread_sp) { in SetThreadStopInfo()
1877 thread_sp->SetStopInfo( in SetThreadStopInfo()
1966 thread_sp->SetStopInfo( in SetThreadStopInfo()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/ASan/
H A DASanRuntime.cpp118 ThreadSP thread_sp = in RetrieveReportData() local
120 StackFrameSP frame_sp = thread_sp->GetSelectedFrame(); in RetrieveReportData()
262 ThreadSP thread_sp = context->exe_ctx_ref.GetThreadSP(); in NotifyBreakpointHit() local
263 if (thread_sp) in NotifyBreakpointHit()
264 thread_sp->SetStopInfo(InstrumentationRuntimeStopInfo:: in NotifyBreakpointHit()
266 *thread_sp, description, report)); in NotifyBreakpointHit()
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Target/
H A DThreadCollection.h36 void AddThread(const lldb::ThreadSP &thread_sp);
38 void AddThreadSortedByIndexID(const lldb::ThreadSP &thread_sp);
40 void InsertThread(const lldb::ThreadSP &thread_sp, uint32_t idx);
H A DExecutionContext.h211 void SetThreadSP(const lldb::ThreadSP &thread_sp);
362 ExecutionContext(const lldb::ThreadSP &thread_sp);
572 void SetThreadSP(const lldb::ThreadSP &thread_sp);
627 void SetContext(const lldb::ThreadSP &thread_sp);
H A DStackFrame.h111 StackFrame(const lldb::ThreadSP &thread_sp, lldb::user_id_t frame_idx,
116 StackFrame(const lldb::ThreadSP &thread_sp, lldb::user_id_t frame_idx,
121 StackFrame(const lldb::ThreadSP &thread_sp, lldb::user_id_t frame_idx,
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/MemoryHistory/asan/
H A DMemoryHistoryASan.cpp161 ThreadSP thread_sp = in GetHistoryThreads() local
163 if (!thread_sp) in GetHistoryThreads()
166 StackFrameSP frame_sp = thread_sp->GetSelectedFrame(); in GetHistoryThreads()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Commands/
H A DCommandObjectThread.cpp361 ThreadSP thread_sp = in HandleOneThread() local
363 if (!thread_sp) { in HandleOneThread()
371 Thread *thread = thread_sp.get(); in HandleOneThread()
1496 ThreadSP thread_sp = in HandleOneThread() local
1498 if (!thread_sp) { in HandleOneThread()
1505 Thread *thread = thread_sp.get(); in HandleOneThread()
1540 ThreadSP thread_sp = in HandleOneThread() local
1542 if (!thread_sp) { in HandleOneThread()
1972 ThreadSP thread_sp = in HandleOneThread() local
1974 if (!thread_sp) { in HandleOneThread()
[all …]

123