| 432 | |
| 433 | |
| 434 | bool DebuggerBreakpoints::AddAbsolute(uint64_t remoteAddress) |
| 435 | { |
| 436 | if (!m_state->GetAdapter()) |
| 437 | return false; |
| 438 | |
| 439 | bool result = false; |
| 440 | // Always add the breakpoint as long as the adapter is connected, even if it may be already present |
| 441 | if (m_state->IsConnected()) |
| 442 | { |
| 443 | m_state->GetAdapter()->AddBreakpoint(remoteAddress); |
| 444 | result = true; |
| 445 | } |
| 446 | |
| 447 | if (!ContainsAbsolute(remoteAddress)) |
| 448 | { |
| 449 | ModuleNameAndOffset info = m_state->GetModules()->AbsoluteAddressToRelative(remoteAddress); |
| 450 | m_breakpoints.push_back(info); |
| 451 | SerializeMetadata(); |
| 452 | } |
| 453 | |
| 454 | return result; |
| 455 | } |
| 456 | |
| 457 | |
| 458 | bool DebuggerBreakpoints::AddOffset(const ModuleNameAndOffset& address) |
no test coverage detected