Lines Matching refs:thread_sp
40 ExecutionContext::ExecutionContext(const lldb::ThreadSP &thread_sp) in ExecutionContext() argument
42 if (thread_sp) in ExecutionContext()
43 SetContext(thread_sp); in ExecutionContext()
69 lldb::ThreadSP thread_sp(thread_wp.lock()); in ExecutionContext() local
70 if (thread_sp) in ExecutionContext()
71 SetContext(thread_sp); in ExecutionContext()
263 void ExecutionContext::SetThreadSP(const lldb::ThreadSP &thread_sp) { in SetThreadSP() argument
264 m_thread_sp = thread_sp; in SetThreadSP()
320 void ExecutionContext::SetContext(const lldb::ThreadSP &thread_sp) { in SetContext() argument
322 m_thread_sp = thread_sp; in SetContext()
323 if (thread_sp) { in SetContext()
324 m_process_sp = thread_sp->GetProcess(); in SetContext()
450 lldb::ThreadSP thread_sp(exe_ctx.GetThreadSP()); in operator =() local
451 m_thread_wp = thread_sp; in operator =()
452 if (thread_sp) in operator =()
453 m_tid = thread_sp->GetID(); in operator =()
487 void ExecutionContextRef::SetThreadSP(const lldb::ThreadSP &thread_sp) { in SetThreadSP() argument
488 if (thread_sp) { in SetThreadSP()
489 m_thread_wp = thread_sp; in SetThreadSP()
490 m_tid = thread_sp->GetID(); in SetThreadSP()
491 SetProcessSP(thread_sp->GetProcess()); in SetThreadSP()
529 lldb::ThreadSP thread_sp( in SetTargetPtr() local
531 if (!thread_sp) in SetTargetPtr()
532 thread_sp = process_sp->GetThreadList().GetThreadAtIndex(0); in SetTargetPtr()
534 if (thread_sp) { in SetTargetPtr()
535 SetThreadSP(thread_sp); in SetTargetPtr()
536 lldb::StackFrameSP frame_sp(thread_sp->GetSelectedFrame()); in SetTargetPtr()
538 frame_sp = thread_sp->GetStackFrameAtIndex(0); in SetTargetPtr()
591 lldb::ThreadSP thread_sp(m_thread_wp.lock()); in GetThreadSP() local
597 if (!thread_sp || !thread_sp->IsValid()) { in GetThreadSP()
600 thread_sp = process_sp->GetThreadList().FindThreadByID(m_tid); in GetThreadSP()
601 m_thread_wp = thread_sp; in GetThreadSP()
609 if (thread_sp && !thread_sp->IsValid()) in GetThreadSP()
610 thread_sp.reset(); in GetThreadSP()
612 return thread_sp; in GetThreadSP()
617 lldb::ThreadSP thread_sp(GetThreadSP()); in GetFrameSP() local
618 if (thread_sp) in GetFrameSP()
619 return thread_sp->GetFrameWithStackID(m_stack_id); in GetFrameSP()