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()
1635 ExpeditedRegisterMap &expedited_register_map, ThreadSP thread_sp) { in ParseExpeditedRegisters() argument
1636 ThreadGDBRemote *gdb_thread = static_cast<ThreadGDBRemote *>(thread_sp.get()); in ParseExpeditedRegisters()
1663 ThreadSP thread_sp; in SetThreadStopInfo() local
1670 thread_sp = m_thread_list_real.FindThreadByProtocolID(tid, false); in SetThreadStopInfo()
1672 if (!thread_sp) { in SetThreadStopInfo()
1674 thread_sp = std::make_shared<ThreadGDBRemote>(*this, tid); in SetThreadStopInfo()
1675 m_thread_list_real.AddThread(thread_sp); in SetThreadStopInfo()
1679 ThreadGDBRemote *gdb_thread = static_cast<ThreadGDBRemote *>(thread_sp.get()); in SetThreadStopInfo()
1686 SetThreadPc(thread_sp, iter - m_thread_ids.begin()); in SetThreadStopInfo()
1688 ParseExpeditedRegisters(expedited_register_map, thread_sp); in SetThreadStopInfo()
1697 ParseExpeditedRegisters(expedited_register_map, thread_sp); in SetThreadStopInfo()
1700 thread_sp->SetName(thread_name.empty() ? nullptr : thread_name.c_str()); in SetThreadStopInfo()
1718 StopInfoSP current_stop_info_sp = thread_sp->GetPrivateStopInfo(false); in SetThreadStopInfo()
1719 if (thread_sp->GetTemporaryResumeState() == eStateSuspended && in SetThreadStopInfo()
1721 thread_sp->SetStopInfo(current_stop_info_sp); in SetThreadStopInfo()
1722 return thread_sp; in SetThreadStopInfo()
1725 if (!thread_sp->StopInfoIsUpToDate()) { in SetThreadStopInfo()
1726 thread_sp->SetStopInfo(StopInfoSP()); in SetThreadStopInfo()
1729 if (ThreadSP memory_thread_sp = m_thread_list.GetBackingThread(thread_sp)) in SetThreadStopInfo()
1730 thread_sp = memory_thread_sp; in SetThreadStopInfo()
1735 thread_sp->SetStopInfo( in SetThreadStopInfo()
1737 *thread_sp, exc_type, exc_data_size, in SetThreadStopInfo()
1748 addr_t pc = thread_sp->GetRegisterContext()->GetPC(); in SetThreadStopInfo()
1750 thread_sp->GetProcess()->GetBreakpointSiteList().FindByAddress( in SetThreadStopInfo()
1755 if (bp_site_sp && bp_site_sp->ValidForThisThread(*thread_sp)) { in SetThreadStopInfo()
1756 thread_sp->SetStopInfo( in SetThreadStopInfo()
1758 *thread_sp, bp_site_sp->GetID())); in SetThreadStopInfo()
1760 thread_sp->SetStopInfo( in SetThreadStopInfo()
1761 StopInfo::CreateStopReasonToTrace(*thread_sp)); in SetThreadStopInfo()
1764 addr_t pc = thread_sp->GetRegisterContext()->GetPC(); in SetThreadStopInfo()
1766 thread_sp->GetProcess()->GetBreakpointSiteList().FindByAddress( in SetThreadStopInfo()
1775 if (bp_site_sp->ValidForThisThread(*thread_sp)) { in SetThreadStopInfo()
1776 thread_sp->SetStopInfo( in SetThreadStopInfo()
1778 *thread_sp, bp_site_sp->GetID())); in SetThreadStopInfo()
1781 thread_sp->SetStopInfo(invalid_stop_info_sp); in SetThreadStopInfo()
1847 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithWatchpointID( in SetThreadStopInfo()
1848 *thread_sp, watch_id, silently_continue)); in SetThreadStopInfo()
1851 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithException( in SetThreadStopInfo()
1852 *thread_sp, description.c_str())); in SetThreadStopInfo()
1856 thread_sp->SetStopInfo( in SetThreadStopInfo()
1857 StopInfo::CreateStopReasonWithExec(*thread_sp)); in SetThreadStopInfo()
1860 thread_sp->SetStopInfo(StopInfo::CreateStopReasonProcessorTrace( in SetThreadStopInfo()
1861 *thread_sp, description.c_str())); in SetThreadStopInfo()
1867 thread_sp->SetStopInfo( in SetThreadStopInfo()
1868 StopInfo::CreateStopReasonFork(*thread_sp, child_pid, child_tid)); in SetThreadStopInfo()
1875 thread_sp->SetStopInfo(StopInfo::CreateStopReasonVFork( in SetThreadStopInfo()
1876 *thread_sp, child_pid, child_tid)); in SetThreadStopInfo()
1879 thread_sp->SetStopInfo( in SetThreadStopInfo()
1880 StopInfo::CreateStopReasonVForkDone(*thread_sp)); in SetThreadStopInfo()
1884 addr_t pc = thread_sp->GetRegisterContext()->GetPC(); in SetThreadStopInfo()
1886 thread_sp->GetProcess()->GetBreakpointSiteList().FindByAddress(pc); in SetThreadStopInfo()
1892 if (bp_site_sp && bp_site_sp->ValidForThisThread(*thread_sp)) { in SetThreadStopInfo()
1893 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithBreakpointSiteID( in SetThreadStopInfo()
1894 *thread_sp, bp_site_sp->GetID())); in SetThreadStopInfo()
1905 thread_sp->GetRegisterContext()->GetPC() + m_breakpoint_pc_offset; in SetThreadStopInfo()
1907 thread_sp->GetProcess()->GetBreakpointSiteList().FindByAddress( in SetThreadStopInfo()
1916 if (bp_site_sp->ValidForThisThread(*thread_sp)) { in SetThreadStopInfo()
1918 thread_sp->GetRegisterContext()->SetPC(pc); in SetThreadStopInfo()
1919 thread_sp->SetStopInfo( in SetThreadStopInfo()
1921 *thread_sp, bp_site_sp->GetID())); in SetThreadStopInfo()
1924 thread_sp->SetStopInfo(invalid_stop_info_sp); in SetThreadStopInfo()
1931 if (thread_sp->GetTemporaryResumeState() == eStateStepping) in SetThreadStopInfo()
1932 thread_sp->SetStopInfo( in SetThreadStopInfo()
1933 StopInfo::CreateStopReasonToTrace(*thread_sp)); in SetThreadStopInfo()
1935 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithSignal( in SetThreadStopInfo()
1936 *thread_sp, signo, description.c_str())); in SetThreadStopInfo()
1940 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithSignal( in SetThreadStopInfo()
1941 *thread_sp, signo, description.c_str())); in SetThreadStopInfo()
1945 lldb::StopInfoSP stop_info_sp(thread_sp->GetStopInfo()); in SetThreadStopInfo()
1951 thread_sp->SetStopInfo(StopInfo::CreateStopReasonWithException( in SetThreadStopInfo()
1952 *thread_sp, description.c_str())); in SetThreadStopInfo()
1957 return thread_sp; in SetThreadStopInfo()
2342 ThreadSP thread_sp = SetThreadStopInfo( in SetThreadStopInfo() local