Lines Matching refs:thread_sp

39 ExecutionContext::ExecutionContext(const lldb::ThreadSP &thread_sp)  in ExecutionContext()  argument
41 if (thread_sp) in ExecutionContext()
42 SetContext(thread_sp); in ExecutionContext()
68 lldb::ThreadSP thread_sp(thread_wp.lock()); in ExecutionContext() local
69 if (thread_sp) in ExecutionContext()
70 SetContext(thread_sp); in ExecutionContext()
254 void ExecutionContext::SetThreadSP(const lldb::ThreadSP &thread_sp) { in SetThreadSP() argument
255 m_thread_sp = thread_sp; in SetThreadSP()
311 void ExecutionContext::SetContext(const lldb::ThreadSP &thread_sp) { in SetContext() argument
313 m_thread_sp = thread_sp; in SetContext()
314 if (thread_sp) { in SetContext()
315 m_process_sp = thread_sp->GetProcess(); in SetContext()
440 lldb::ThreadSP thread_sp(exe_ctx.GetThreadSP()); in operator =() local
441 m_thread_wp = thread_sp; in operator =()
442 if (thread_sp) in operator =()
443 m_tid = thread_sp->GetID(); in operator =()
477 void ExecutionContextRef::SetThreadSP(const lldb::ThreadSP &thread_sp) { in SetThreadSP() argument
478 if (thread_sp) { in SetThreadSP()
479 m_thread_wp = thread_sp; in SetThreadSP()
480 m_tid = thread_sp->GetID(); in SetThreadSP()
481 SetProcessSP(thread_sp->GetProcess()); in SetThreadSP()
519 lldb::ThreadSP thread_sp( in SetTargetPtr() local
521 if (!thread_sp) in SetTargetPtr()
522 thread_sp = process_sp->GetThreadList().GetThreadAtIndex(0); in SetTargetPtr()
524 if (thread_sp) { in SetTargetPtr()
525 SetThreadSP(thread_sp); in SetTargetPtr()
526 lldb::StackFrameSP frame_sp(thread_sp->GetSelectedFrame()); in SetTargetPtr()
528 frame_sp = thread_sp->GetStackFrameAtIndex(0); in SetTargetPtr()
581 lldb::ThreadSP thread_sp(m_thread_wp.lock()); in GetThreadSP() local
587 if (!thread_sp || !thread_sp->IsValid()) { in GetThreadSP()
590 thread_sp = process_sp->GetThreadList().FindThreadByID(m_tid); in GetThreadSP()
591 m_thread_wp = thread_sp; in GetThreadSP()
599 if (thread_sp && !thread_sp->IsValid()) in GetThreadSP()
600 thread_sp.reset(); in GetThreadSP()
602 return thread_sp; in GetThreadSP()
607 lldb::ThreadSP thread_sp(GetThreadSP()); in GetFrameSP() local
608 if (thread_sp) in GetFrameSP()
609 return thread_sp->GetFrameWithStackID(m_stack_id); in GetFrameSP()