Lines Matching refs:thread_sp

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()
313 if (thread_sp) { in SetContext()
314 m_process_sp = thread_sp->GetProcess(); in SetContext()
435 lldb::ThreadSP thread_sp(exe_ctx.GetThreadSP()); in operator =() local
436 m_thread_wp = thread_sp; in operator =()
437 if (thread_sp) in operator =()
438 m_tid = thread_sp->GetID(); in operator =()
472 void ExecutionContextRef::SetThreadSP(const lldb::ThreadSP &thread_sp) { in SetThreadSP() argument
473 if (thread_sp) { in SetThreadSP()
474 m_thread_wp = thread_sp; in SetThreadSP()
475 m_tid = thread_sp->GetID(); in SetThreadSP()
476 SetProcessSP(thread_sp->GetProcess()); in SetThreadSP()
514 lldb::ThreadSP thread_sp( in SetTargetPtr() local
516 if (!thread_sp) in SetTargetPtr()
517 thread_sp = process_sp->GetThreadList().GetThreadAtIndex(0); in SetTargetPtr()
519 if (thread_sp) { in SetTargetPtr()
520 SetThreadSP(thread_sp); in SetTargetPtr()
522 thread_sp->GetSelectedFrame(DoNoSelectMostRelevantFrame)); in SetTargetPtr()
524 frame_sp = thread_sp->GetStackFrameAtIndex(0); in SetTargetPtr()
577 lldb::ThreadSP thread_sp(m_thread_wp.lock()); in GetThreadSP() local
583 if (!thread_sp || !thread_sp->IsValid()) { in GetThreadSP()
586 thread_sp = process_sp->GetThreadList().FindThreadByID(m_tid); in GetThreadSP()
587 m_thread_wp = thread_sp; in GetThreadSP()
595 if (thread_sp && !thread_sp->IsValid()) in GetThreadSP()
596 thread_sp.reset(); in GetThreadSP()
598 return thread_sp; in GetThreadSP()
603 lldb::ThreadSP thread_sp(GetThreadSP()); in GetFrameSP() local
604 if (thread_sp) in GetFrameSP()
605 return thread_sp->GetFrameWithStackID(m_stack_id); in GetFrameSP()