| 518 | |
| 519 | |
| 520 | bool DebuggerBreakpoints::ContainsOffset(const ModuleNameAndOffset& address) |
| 521 | { |
| 522 | // If there is no backend, then only check if the breakpoint is in the list |
| 523 | // This is useful when we deal with the breakpoint before the target is launched |
| 524 | if (!m_state->GetAdapter()) |
| 525 | return std::find(m_breakpoints.begin(), m_breakpoints.end(), address) != m_breakpoints.end(); |
| 526 | |
| 527 | // When the backend is live, convert the relative address to absolute address and check its existence |
| 528 | uint64_t absolute = m_state->GetModules()->RelativeAddressToAbsolute(address); |
| 529 | return ContainsAbsolute(absolute); |
| 530 | } |
| 531 | |
| 532 | |
| 533 | bool DebuggerBreakpoints::ContainsAbsolute(uint64_t address) |
no test coverage detected