Lines Matching refs:bp_site
1679 m_breakpoint_site_list.ForEach([this](BreakpointSite *bp_site) -> void { in DisableAllBreakpointSites() argument
1681 DisableBreakpointSite(bp_site); in DisableAllBreakpointSites()
1831 buf](BreakpointSite *bp_site) -> void { in RemoveBreakpointOpcodesFromBuffer() argument
1832 if (bp_site->GetType() == BreakpointSite::eSoftware) { in RemoveBreakpointOpcodesFromBuffer()
1836 if (bp_site->IntersectsRange(bp_addr, size, &intersect_addr, in RemoveBreakpointOpcodesFromBuffer()
1841 assert(opcode_offset + intersect_size <= bp_site->GetByteSize()); in RemoveBreakpointOpcodesFromBuffer()
1844 bp_site->GetSavedOpcodeBytes() + opcode_offset, in RemoveBreakpointOpcodesFromBuffer()
1853 size_t Process::GetSoftwareBreakpointTrapOpcode(BreakpointSite *bp_site) { in GetSoftwareBreakpointTrapOpcode() argument
1856 return platform_sp->GetSoftwareBreakpointTrapOpcode(GetTarget(), bp_site); in GetSoftwareBreakpointTrapOpcode()
1860 Status Process::EnableSoftwareBreakpoint(BreakpointSite *bp_site) { in EnableSoftwareBreakpoint() argument
1862 assert(bp_site != nullptr); in EnableSoftwareBreakpoint()
1864 const addr_t bp_addr = bp_site->GetLoadAddress(); in EnableSoftwareBreakpoint()
1867 bp_site->GetID(), (uint64_t)bp_addr); in EnableSoftwareBreakpoint()
1868 if (bp_site->IsEnabled()) { in EnableSoftwareBreakpoint()
1873 bp_site->GetID(), (uint64_t)bp_addr); in EnableSoftwareBreakpoint()
1883 const size_t bp_opcode_size = GetSoftwareBreakpointTrapOpcode(bp_site); in EnableSoftwareBreakpoint()
1891 const uint8_t *const bp_opcode_bytes = bp_site->GetTrapOpcodeBytes(); in EnableSoftwareBreakpoint()
1900 if (DoReadMemory(bp_addr, bp_site->GetSavedOpcodeBytes(), bp_opcode_size, in EnableSoftwareBreakpoint()
1910 bp_site->SetEnabled(true); in EnableSoftwareBreakpoint()
1911 bp_site->SetType(BreakpointSite::eSoftware); in EnableSoftwareBreakpoint()
1915 bp_site->GetID(), (uint64_t)bp_addr); in EnableSoftwareBreakpoint()
1932 bp_site->GetID(), (uint64_t)bp_addr, error.AsCString()); in EnableSoftwareBreakpoint()
1936 Status Process::DisableSoftwareBreakpoint(BreakpointSite *bp_site) { in DisableSoftwareBreakpoint() argument
1938 assert(bp_site != nullptr); in DisableSoftwareBreakpoint()
1940 addr_t bp_addr = bp_site->GetLoadAddress(); in DisableSoftwareBreakpoint()
1941 lldb::user_id_t breakID = bp_site->GetID(); in DisableSoftwareBreakpoint()
1947 if (bp_site->IsHardware()) { in DisableSoftwareBreakpoint()
1949 } else if (bp_site->IsEnabled()) { in DisableSoftwareBreakpoint()
1950 const size_t break_op_size = bp_site->GetByteSize(); in DisableSoftwareBreakpoint()
1951 const uint8_t *const break_op = bp_site->GetTrapOpcodeBytes(); in DisableSoftwareBreakpoint()
1967 if (DoWriteMemory(bp_addr, bp_site->GetSavedOpcodeBytes(), in DisableSoftwareBreakpoint()
1988 if (::memcmp(bp_site->GetSavedOpcodeBytes(), verify_opcode, in DisableSoftwareBreakpoint()
1991 bp_site->SetEnabled(false); in DisableSoftwareBreakpoint()
1995 bp_site->GetID(), (uint64_t)bp_addr); in DisableSoftwareBreakpoint()
2014 bp_site->GetID(), (uint64_t)bp_addr); in DisableSoftwareBreakpoint()
2022 bp_site->GetID(), (uint64_t)bp_addr, error.AsCString()); in DisableSoftwareBreakpoint()