• Home
  • Raw
  • Download

Lines Matching refs:bp_site

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