Lines Matching refs:thread_sp
57 ExecutionContext::ExecutionContext (const lldb::ThreadSP &thread_sp) :
63 if (thread_sp)
64 SetContext (thread_sp);
105 lldb::ThreadSP thread_sp(thread_wp.lock());
106 if (thread_sp)
107 SetContext (thread_sp);
337 ExecutionContext::SetThreadSP (const lldb::ThreadSP &thread_sp)
339 m_thread_sp = thread_sp;
409 ExecutionContext::SetContext (const lldb::ThreadSP &thread_sp)
412 m_thread_sp = thread_sp;
413 if (thread_sp)
415 m_process_sp = thread_sp->GetProcess();
595 lldb::ThreadSP thread_sp (exe_ctx.GetThreadSP());
596 m_thread_wp = thread_sp;
597 if (thread_sp)
598 m_tid = thread_sp->GetID();
644 ExecutionContextRef::SetThreadSP (const lldb::ThreadSP &thread_sp)
646 if (thread_sp)
648 m_thread_wp = thread_sp;
649 m_tid = thread_sp->GetID();
650 SetProcessSP (thread_sp->GetProcess());
699 lldb::ThreadSP thread_sp (process_sp->GetThreadList().GetSelectedThread());
700 if (!thread_sp)
701 thread_sp = process_sp->GetThreadList().GetThreadAtIndex(0);
703 if (thread_sp)
705 SetThreadSP (thread_sp);
706 lldb::StackFrameSP frame_sp (thread_sp->GetSelectedFrame());
708 frame_sp = thread_sp->GetStackFrameAtIndex(0);
779 lldb::ThreadSP thread_sp (m_thread_wp.lock());
786 if (!thread_sp || !thread_sp->IsValid())
791 thread_sp = process_sp->GetThreadList().FindThreadByID(m_tid);
792 m_thread_wp = thread_sp;
797 // Check that we aren't about to return an invalid thread sp. We might return a NULL thread_sp,
800 if (thread_sp && !thread_sp->IsValid())
801 thread_sp.reset();
803 return thread_sp;
811 lldb::ThreadSP thread_sp (GetThreadSP());
812 if (thread_sp)
813 return thread_sp->GetFrameWithStackID (m_stack_id);