| 531 | |
| 532 | |
| 533 | bool DebuggerBreakpoints::ContainsAbsolute(uint64_t address) |
| 534 | { |
| 535 | if (!m_state->GetAdapter()) |
| 536 | return false; |
| 537 | |
| 538 | // We need to convert every ModuleAndOffset to absolute address and compare with the input address |
| 539 | // Because every ModuleAndOffset can be converted to an absolute address, but there is no guarantee that it works |
| 540 | // backward |
| 541 | // Well, that is because lldb does not report the size of the loaded libraries, so it is currently screwed up |
| 542 | for (const ModuleNameAndOffset& breakpoint : m_breakpoints) |
| 543 | { |
| 544 | uint64_t absolute = m_state->GetModules()->RelativeAddressToAbsolute(breakpoint); |
| 545 | if (absolute == address) |
| 546 | return true; |
| 547 | } |
| 548 | return false; |
| 549 | } |
| 550 | |
| 551 | |
| 552 | void DebuggerBreakpoints::SerializeMetadata() |
no test coverage detected