Lines Matching refs:thread_sp
1517 ThreadSP thread_sp( in DoUpdateThreadList() local
1519 if (!thread_sp) { in DoUpdateThreadList()
1520 thread_sp = std::make_shared<ThreadGDBRemote>(*this, tid); in DoUpdateThreadList()
1522 thread_sp.get(), thread_sp->GetID()); in DoUpdateThreadList()
1525 thread_sp.get(), thread_sp->GetID()); in DoUpdateThreadList()
1528 SetThreadPc(thread_sp, i); in DoUpdateThreadList()
1529 new_thread_list.AddThreadSortedByIndexID(thread_sp); in DoUpdateThreadList()
1547 void ProcessGDBRemote::SetThreadPc(const ThreadSP &thread_sp, uint64_t index) { in SetThreadPc() argument
1548 if (m_thread_ids.size() == m_thread_pcs.size() && thread_sp.get() && in SetThreadPc()
1551 static_cast<ThreadGDBRemote *>(thread_sp.get()); in SetThreadPc()
1552 RegisterContextSP reg_ctx_sp(thread_sp->GetRegisterContext()); in SetThreadPc()
1615 ExpeditedRegisterMap &expedited_register_map, ThreadSP thread_sp) { in ParseExpeditedRegisters() argument
1616 ThreadGDBRemote *gdb_thread = static_cast<ThreadGDBRemote *>(thread_sp.get()); in ParseExpeditedRegisters()
1643 ThreadSP thread_sp; in SetThreadStopInfo() local
1650 thread_sp = m_thread_list_real.FindThreadByProtocolID(tid, false); in SetThreadStopInfo()
1652 if (!thread_sp) { in SetThreadStopInfo()
1654 thread_sp = std::make_shared<ThreadGDBRemote>(*this, tid); in SetThreadStopInfo()
1655 m_thread_list_real.AddThread(thread_sp); in SetThreadStopInfo()
1659 ThreadGDBRemote *gdb_thread = static_cast<ThreadGDBRemote *>(thread_sp.get()); in SetThreadStopInfo()
1666 SetThreadPc(thread_sp, iter - m_thread_ids.begin()); in SetThreadStopInfo()
1668 ParseExpeditedRegisters(expedited_register_map, thread_sp); in SetThreadStopInfo()
1677 ParseExpeditedRegisters(expedited_register_map, thread_sp); in SetThreadStopInfo()
1680 thread_sp->SetName(thread_name.empty() ? nullptr : thread_name.c_str()); in SetThreadStopInfo()
1698 StopInfoSP current_stop_info_sp = thread_sp->GetPrivateStopInfo(false); in SetThreadStopInfo()
1699 if (thread_sp->GetTemporaryResumeState() == eStateSuspended && in SetThreadStopInfo()
1701 thread_sp->SetStopInfo(current_stop_info_sp); in SetThreadStopInfo()
1702 return thread_sp; in SetThreadStopInfo()
1705 if (!thread_sp->StopInfoIsUpToDate()) { in SetThreadStopInfo()
1706 thread_sp->SetStopInfo(StopInfoSP()); in SetThreadStopInfo()
1709 if (ThreadSP memory_thread_sp = m_thread_list.GetBackingThread(thread_sp)) in SetThreadStopInfo()
1710 thread_sp = memory_thread_sp; in SetThreadStopInfo()
1715 thread_sp->SetStopInfo( in SetThreadStopInfo()
1717 *thread_sp, exc_type, exc_data_size, in SetThreadStopInfo()
1726 addr_t pc = thread_sp->GetRegisterContext()->GetPC(); in SetThreadStopInfo()
1728 thread_sp->GetProcess()->GetBreakpointSiteList().FindByAddress( in SetThreadStopInfo()
1733 if (bp_site_sp && bp_site_sp->ValidForThisThread(*thread_sp)) { in SetThreadStopInfo()
1734 thread_sp->SetStopInfo( in SetThreadStopInfo()
1736 *thread_sp, bp_site_sp->GetID())); in SetThreadStopInfo()
1738 thread_sp->SetStopInfo( in SetThreadStopInfo()
1739 StopInfo::CreateStopReasonToTrace(*thread_sp)); in SetThreadStopInfo()
1742 addr_t pc = thread_sp->GetRegisterContext()->GetPC(); in SetThreadStopInfo()
1744 thread_sp->GetProcess()->GetBreakpointSiteList().FindByAddress( in SetThreadStopInfo()
1753 if (bp_site_sp->ValidForThisThread(*thread_sp)) { in SetThreadStopInfo()
1754 thread_sp->SetStopInfo( in SetThreadStopInfo()
1756 *thread_sp, bp_site_sp->GetID())); in SetThreadStopInfo()
1759 thread_sp->SetStopInfo(invalid_stop_info_sp); in SetThreadStopInfo()
1825 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithWatchpointID( in SetThreadStopInfo()
1826 *thread_sp, watch_id, silently_continue)); in SetThreadStopInfo()
1829 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithException( in SetThreadStopInfo()
1830 *thread_sp, description.c_str())); in SetThreadStopInfo()
1834 thread_sp->SetStopInfo( in SetThreadStopInfo()
1835 StopInfo::CreateStopReasonWithExec(*thread_sp)); in SetThreadStopInfo()
1838 thread_sp->SetStopInfo(StopInfo::CreateStopReasonProcessorTrace( in SetThreadStopInfo()
1839 *thread_sp, description.c_str())); in SetThreadStopInfo()
1845 thread_sp->SetStopInfo( in SetThreadStopInfo()
1846 StopInfo::CreateStopReasonFork(*thread_sp, child_pid, child_tid)); in SetThreadStopInfo()
1853 thread_sp->SetStopInfo(StopInfo::CreateStopReasonVFork( in SetThreadStopInfo()
1854 *thread_sp, child_pid, child_tid)); in SetThreadStopInfo()
1857 thread_sp->SetStopInfo( in SetThreadStopInfo()
1858 StopInfo::CreateStopReasonVForkDone(*thread_sp)); in SetThreadStopInfo()
1862 addr_t pc = thread_sp->GetRegisterContext()->GetPC(); in SetThreadStopInfo()
1864 thread_sp->GetProcess()->GetBreakpointSiteList().FindByAddress(pc); in SetThreadStopInfo()
1871 if (bp_site_sp && bp_site_sp->ValidForThisThread(*thread_sp)) { in SetThreadStopInfo()
1872 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithBreakpointSiteID( in SetThreadStopInfo()
1873 *thread_sp, bp_site_sp->GetID())); in SetThreadStopInfo()
1884 thread_sp->GetRegisterContext()->GetPC() + m_breakpoint_pc_offset; in SetThreadStopInfo()
1886 thread_sp->GetProcess()->GetBreakpointSiteList().FindByAddress( in SetThreadStopInfo()
1895 if (bp_site_sp->ValidForThisThread(*thread_sp)) { in SetThreadStopInfo()
1897 thread_sp->GetRegisterContext()->SetPC(pc); in SetThreadStopInfo()
1898 thread_sp->SetStopInfo( in SetThreadStopInfo()
1900 *thread_sp, bp_site_sp->GetID())); in SetThreadStopInfo()
1903 thread_sp->SetStopInfo(invalid_stop_info_sp); in SetThreadStopInfo()
1910 if (thread_sp->GetTemporaryResumeState() == eStateStepping) in SetThreadStopInfo()
1911 thread_sp->SetStopInfo( in SetThreadStopInfo()
1912 StopInfo::CreateStopReasonToTrace(*thread_sp)); in SetThreadStopInfo()
1914 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithSignal( in SetThreadStopInfo()
1915 *thread_sp, signo, description.c_str())); in SetThreadStopInfo()
1919 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithSignal( in SetThreadStopInfo()
1920 *thread_sp, signo, description.c_str())); in SetThreadStopInfo()
1924 lldb::StopInfoSP stop_info_sp(thread_sp->GetStopInfo()); in SetThreadStopInfo()
1930 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithException( in SetThreadStopInfo()
1931 *thread_sp, description.c_str())); in SetThreadStopInfo()
1936 return thread_sp; in SetThreadStopInfo()
2321 ThreadSP thread_sp = SetThreadStopInfo( in SetThreadStopInfo() local