| 456 | |
| 457 | |
| 458 | bool DebuggerBreakpoints::AddOffset(const ModuleNameAndOffset& address) |
| 459 | { |
| 460 | if (!ContainsOffset(address)) |
| 461 | { |
| 462 | m_breakpoints.push_back(address); |
| 463 | SerializeMetadata(); |
| 464 | |
| 465 | // If the adapter is already created, we ask it to add the breakpoint. |
| 466 | // Otherwise, all breakpoints will be added to the adapter when the adapter is created. |
| 467 | if (m_state->GetAdapter() && m_state->IsConnected()) |
| 468 | { |
| 469 | m_state->GetAdapter()->AddBreakpoint(address); |
| 470 | return true; |
| 471 | } |
| 472 | return true; |
| 473 | } |
| 474 | return false; |
| 475 | } |
| 476 | |
| 477 | |
| 478 | bool DebuggerBreakpoints::RemoveAbsolute(uint64_t remoteAddress) |
no test coverage detected