Lines Matching defs:bp_site

1999     m_breakpoint_site_list.ForEach([this](BreakpointSite *bp_site) -> void {
2000 // bp_site->SetEnabled(true);
2001 DisableBreakpointSite(bp_site);
2110 bp_sites_in_range.ForEach([bp_addr, size, buf, &bytes_removed](BreakpointSite *bp_site) -> void {
2111 if (bp_site->GetType() == BreakpointSite::eSoftware)
2116 if (bp_site->IntersectsRange(bp_addr, size, &intersect_addr, &intersect_size, &opcode_offset))
2120 assert(opcode_offset + intersect_size <= bp_site->GetByteSize());
2122 ::memcpy(buf + buf_offset, bp_site->GetSavedOpcodeBytes() + opcode_offset, intersect_size);
2133 Process::GetSoftwareBreakpointTrapOpcode (BreakpointSite* bp_site)
2137 return platform_sp->GetSoftwareBreakpointTrapOpcode (m_target, bp_site);
2142 Process::EnableSoftwareBreakpoint (BreakpointSite *bp_site)
2145 assert (bp_site != NULL);
2147 const addr_t bp_addr = bp_site->GetLoadAddress();
2149 log->Printf ("Process::EnableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64, bp_site->GetID(), (uint64_t)bp_addr);
2150 if (bp_site->IsEnabled())
2153 log->Printf ("Process::EnableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64 " -- already enabled", bp_site->GetID(), (uint64_t)bp_addr);
2164 const size_t bp_opcode_size = GetSoftwareBreakpointTrapOpcode(bp_site);
2172 const uint8_t * const bp_opcode_bytes = bp_site->GetTrapOpcodeBytes();
2181 if (DoReadMemory(bp_addr, bp_site->GetSavedOpcodeBytes(), bp_opcode_size, error) == bp_opcode_size)
2191 bp_site->SetEnabled(true);
2192 bp_site->SetType (BreakpointSite::eSoftware);
2195 bp_site->GetID(),
2212 bp_site->GetID(),
2219 Process::DisableSoftwareBreakpoint (BreakpointSite *bp_site)
2222 assert (bp_site != NULL);
2224 addr_t bp_addr = bp_site->GetLoadAddress();
2225 lldb::user_id_t breakID = bp_site->GetID();
2229 if (bp_site->IsHardware())
2233 else if (bp_site->IsEnabled())
2235 const size_t break_op_size = bp_site->GetByteSize();
2236 const uint8_t * const break_op = bp_site->GetTrapOpcodeBytes();
2254 if (DoWriteMemory (bp_addr, bp_site->GetSavedOpcodeBytes(), break_op_size, error) == break_op_size)
2276 if (::memcmp (bp_site->GetSavedOpcodeBytes(), verify_opcode, break_op_size) == 0)
2279 bp_site->SetEnabled(false);
2281 log->Printf ("Process::DisableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64 " -- SUCCESS", bp_site->GetID(), (uint64_t)bp_addr);
2301 log->Printf ("Process::DisableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64 " -- already disabled", bp_site->GetID(), (uint64_t)bp_addr);
2307 bp_site->GetID(),