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()
252 void ExecutionContext::SetThreadSP(const lldb::ThreadSP &thread_sp) { in SetThreadSP() argument
253 m_thread_sp = thread_sp; in SetThreadSP()
309 void ExecutionContext::SetContext(const lldb::ThreadSP &thread_sp) { in SetContext() argument
311 m_thread_sp = thread_sp; in SetContext()
312 if (thread_sp) { in SetContext()
313 m_process_sp = thread_sp->GetProcess(); in SetContext()
434 lldb::ThreadSP thread_sp(exe_ctx.GetThreadSP()); in operator =() local
435 m_thread_wp = thread_sp; in operator =()
436 if (thread_sp) in operator =()
437 m_tid = thread_sp->GetID(); in operator =()
471 void ExecutionContextRef::SetThreadSP(const lldb::ThreadSP &thread_sp) { in SetThreadSP() argument
472 if (thread_sp) { in SetThreadSP()
473 m_thread_wp = thread_sp; in SetThreadSP()
474 m_tid = thread_sp->GetID(); in SetThreadSP()
475 SetProcessSP(thread_sp->GetProcess()); in SetThreadSP()
513 lldb::ThreadSP thread_sp( in SetTargetPtr() local
515 if (!thread_sp) in SetTargetPtr()
516 thread_sp = process_sp->GetThreadList().GetThreadAtIndex(0); in SetTargetPtr()
518 if (thread_sp) { in SetTargetPtr()
519 SetThreadSP(thread_sp); in SetTargetPtr()
520 lldb::StackFrameSP frame_sp(thread_sp->GetSelectedFrame()); in SetTargetPtr()
522 frame_sp = thread_sp->GetStackFrameAtIndex(0); in SetTargetPtr()
575 lldb::ThreadSP thread_sp(m_thread_wp.lock()); in GetThreadSP() local
581 if (!thread_sp || !thread_sp->IsValid()) { in GetThreadSP()
584 thread_sp = process_sp->GetThreadList().FindThreadByID(m_tid); in GetThreadSP()
585 m_thread_wp = thread_sp; in GetThreadSP()
593 if (thread_sp && !thread_sp->IsValid()) in GetThreadSP()
594 thread_sp.reset(); in GetThreadSP()
596 return thread_sp; in GetThreadSP()
601 lldb::ThreadSP thread_sp(GetThreadSP()); in GetFrameSP() local
602 if (thread_sp) in GetFrameSP()
603 return thread_sp->GetFrameWithStackID(m_stack_id); in GetFrameSP()