Lines Matching refs:thread_sp
1628 ThreadSP thread_sp( in DoUpdateThreadList() local
1630 if (!thread_sp) { in DoUpdateThreadList()
1631 thread_sp = std::make_shared<ThreadGDBRemote>(*this, tid); in DoUpdateThreadList()
1633 thread_sp.get(), thread_sp->GetID()); in DoUpdateThreadList()
1636 thread_sp.get(), thread_sp->GetID()); in DoUpdateThreadList()
1639 SetThreadPc(thread_sp, i); in DoUpdateThreadList()
1640 new_thread_list.AddThreadSortedByIndexID(thread_sp); in DoUpdateThreadList()
1658 void ProcessGDBRemote::SetThreadPc(const ThreadSP &thread_sp, uint64_t index) { in SetThreadPc() argument
1659 if (m_thread_ids.size() == m_thread_pcs.size() && thread_sp.get() && in SetThreadPc()
1662 static_cast<ThreadGDBRemote *>(thread_sp.get()); in SetThreadPc()
1663 RegisterContextSP reg_ctx_sp(thread_sp->GetRegisterContext()); in SetThreadPc()
1734 ThreadSP thread_sp; in SetThreadStopInfo() local
1743 thread_sp = m_thread_list_real.FindThreadByProtocolID(tid, false); in SetThreadStopInfo()
1745 if (!thread_sp) { in SetThreadStopInfo()
1747 thread_sp = std::make_shared<ThreadGDBRemote>(*this, tid); in SetThreadStopInfo()
1748 m_thread_list_real.AddThread(thread_sp); in SetThreadStopInfo()
1752 if (thread_sp) { in SetThreadStopInfo()
1754 static_cast<ThreadGDBRemote *>(thread_sp.get()); in SetThreadStopInfo()
1761 SetThreadPc(thread_sp, iter - m_thread_ids.begin()); in SetThreadStopInfo()
1788 thread_sp->SetName(thread_name.empty() ? nullptr : thread_name.c_str()); in SetThreadStopInfo()
1807 if (!thread_sp->StopInfoIsUpToDate()) { in SetThreadStopInfo()
1808 thread_sp->SetStopInfo(StopInfoSP()); in SetThreadStopInfo()
1812 m_thread_list.GetBackingThread(thread_sp)) in SetThreadStopInfo()
1813 thread_sp = memory_thread_sp; in SetThreadStopInfo()
1818 thread_sp->SetStopInfo( in SetThreadStopInfo()
1820 *thread_sp, exc_type, exc_data_size, in SetThreadStopInfo()
1829 addr_t pc = thread_sp->GetRegisterContext()->GetPC(); in SetThreadStopInfo()
1830 lldb::BreakpointSiteSP bp_site_sp = thread_sp->GetProcess() in SetThreadStopInfo()
1837 if (bp_site_sp && bp_site_sp->ValidForThisThread(*thread_sp)) { in SetThreadStopInfo()
1838 thread_sp->SetStopInfo( in SetThreadStopInfo()
1840 *thread_sp, bp_site_sp->GetID())); in SetThreadStopInfo()
1842 thread_sp->SetStopInfo( in SetThreadStopInfo()
1843 StopInfo::CreateStopReasonToTrace(*thread_sp)); in SetThreadStopInfo()
1846 addr_t pc = thread_sp->GetRegisterContext()->GetPC(); in SetThreadStopInfo()
1847 lldb::BreakpointSiteSP bp_site_sp = thread_sp->GetProcess() in SetThreadStopInfo()
1857 if (bp_site_sp->ValidForThisThread(*thread_sp)) { in SetThreadStopInfo()
1858 thread_sp->SetStopInfo( in SetThreadStopInfo()
1860 *thread_sp, bp_site_sp->GetID())); in SetThreadStopInfo()
1863 thread_sp->SetStopInfo(invalid_stop_info_sp); in SetThreadStopInfo()
1896 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithWatchpointID( in SetThreadStopInfo()
1897 *thread_sp, watch_id, wp_hit_addr)); in SetThreadStopInfo()
1900 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithException( in SetThreadStopInfo()
1901 *thread_sp, description.c_str())); in SetThreadStopInfo()
1905 thread_sp->SetStopInfo( in SetThreadStopInfo()
1906 StopInfo::CreateStopReasonWithExec(*thread_sp)); in SetThreadStopInfo()
1909 thread_sp->SetStopInfo(StopInfo::CreateStopReasonProcessorTrace( in SetThreadStopInfo()
1910 *thread_sp, description.c_str())); in SetThreadStopInfo()
1913 addr_t pc = thread_sp->GetRegisterContext()->GetPC(); in SetThreadStopInfo()
1915 thread_sp->GetProcess()->GetBreakpointSiteList().FindByAddress( in SetThreadStopInfo()
1923 if (bp_site_sp && bp_site_sp->ValidForThisThread(*thread_sp)) { in SetThreadStopInfo()
1924 thread_sp->SetStopInfo( in SetThreadStopInfo()
1926 *thread_sp, bp_site_sp->GetID())); in SetThreadStopInfo()
1936 addr_t pc = thread_sp->GetRegisterContext()->GetPC() + in SetThreadStopInfo()
1938 lldb::BreakpointSiteSP bp_site_sp = thread_sp->GetProcess() in SetThreadStopInfo()
1948 if (bp_site_sp->ValidForThisThread(*thread_sp)) { in SetThreadStopInfo()
1950 thread_sp->GetRegisterContext()->SetPC(pc); in SetThreadStopInfo()
1951 thread_sp->SetStopInfo( in SetThreadStopInfo()
1953 *thread_sp, bp_site_sp->GetID())); in SetThreadStopInfo()
1956 thread_sp->SetStopInfo(invalid_stop_info_sp); in SetThreadStopInfo()
1963 if (thread_sp->GetTemporaryResumeState() == eStateStepping) in SetThreadStopInfo()
1964 thread_sp->SetStopInfo( in SetThreadStopInfo()
1965 StopInfo::CreateStopReasonToTrace(*thread_sp)); in SetThreadStopInfo()
1967 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithSignal( in SetThreadStopInfo()
1968 *thread_sp, signo, description.c_str())); in SetThreadStopInfo()
1972 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithSignal( in SetThreadStopInfo()
1973 *thread_sp, signo, description.c_str())); in SetThreadStopInfo()
1977 lldb::StopInfoSP stop_info_sp(thread_sp->GetStopInfo()); in SetThreadStopInfo()
1983 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithException( in SetThreadStopInfo()
1984 *thread_sp, description.c_str())); in SetThreadStopInfo()
1991 return thread_sp; in SetThreadStopInfo()
2344 ThreadSP thread_sp = SetThreadStopInfo( in SetThreadStopInfo() local
2504 ThreadSP thread_sp = threads.GetThreadAtIndex(i); in DoDestroy() local
2505 StopInfoSP stop_info_sp = thread_sp->GetPrivateStopInfo(); in DoDestroy()
2514 thread_sp->GetProtocolID(), in DoDestroy()
2540 ThreadSP thread_sp = threads.GetThreadAtIndex(i); in DoDestroy() local
2541 StopInfoSP stop_info_sp = thread_sp->GetPrivateStopInfo(); in DoDestroy()
2550 thread_sp->GetProtocolID()); in DoDestroy()
2551 thread_sp->SetResumeState(eStateSuspended); in DoDestroy()