Lines Matching defs:bp_site

2076     m_breakpoint_site_list.ForEach([this](BreakpointSite *bp_site) -> void {
2077 // bp_site->SetEnabled(true);
2078 DisableBreakpointSite(bp_site);
2253 bp_sites_in_range.ForEach([bp_addr, size, buf, &bytes_removed](BreakpointSite *bp_site) -> void {
2254 if (bp_site->GetType() == BreakpointSite::eSoftware)
2259 if (bp_site->IntersectsRange(bp_addr, size, &intersect_addr, &intersect_size, &opcode_offset))
2263 assert(opcode_offset + intersect_size <= bp_site->GetByteSize());
2265 ::memcpy(buf + buf_offset, bp_site->GetSavedOpcodeBytes() + opcode_offset, intersect_size);
2276 Process::GetSoftwareBreakpointTrapOpcode (BreakpointSite* bp_site)
2280 return platform_sp->GetSoftwareBreakpointTrapOpcode (m_target, bp_site);
2285 Process::EnableSoftwareBreakpoint (BreakpointSite *bp_site)
2288 assert (bp_site != NULL);
2290 const addr_t bp_addr = bp_site->GetLoadAddress();
2292 log->Printf ("Process::EnableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64, bp_site->GetID(), (uint64_t)bp_addr);
2293 if (bp_site->IsEnabled())
2296 log->Printf ("Process::EnableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64 " -- already enabled", bp_site->GetID(), (uint64_t)bp_addr);
2307 const size_t bp_opcode_size = GetSoftwareBreakpointTrapOpcode(bp_site);
2315 const uint8_t * const bp_opcode_bytes = bp_site->GetTrapOpcodeBytes();
2324 if (DoReadMemory(bp_addr, bp_site->GetSavedOpcodeBytes(), bp_opcode_size, error) == bp_opcode_size)
2334 bp_site->SetEnabled(true);
2335 bp_site->SetType (BreakpointSite::eSoftware);
2338 bp_site->GetID(),
2355 bp_site->GetID(),
2362 Process::DisableSoftwareBreakpoint (BreakpointSite *bp_site)
2365 assert (bp_site != NULL);
2367 addr_t bp_addr = bp_site->GetLoadAddress();
2368 lldb::user_id_t breakID = bp_site->GetID();
2372 if (bp_site->IsHardware())
2376 else if (bp_site->IsEnabled())
2378 const size_t break_op_size = bp_site->GetByteSize();
2379 const uint8_t * const break_op = bp_site->GetTrapOpcodeBytes();
2397 if (DoWriteMemory (bp_addr, bp_site->GetSavedOpcodeBytes(), break_op_size, error) == break_op_size)
2419 if (::memcmp (bp_site->GetSavedOpcodeBytes(), verify_opcode, break_op_size) == 0)
2422 bp_site->SetEnabled(false);
2424 log->Printf ("Process::DisableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64 " -- SUCCESS", bp_site->GetID(), (uint64_t)bp_addr);
2444 log->Printf ("Process::DisableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64 " -- already disabled", bp_site->GetID(), (uint64_t)bp_addr);
2450 bp_site->GetID(),