| 126 | } |
| 127 | |
| 128 | void EmmyDebuggerManager::AddBreakpoint(std::shared_ptr<BreakPoint> breakpoint) |
| 129 | { |
| 130 | std::lock_guard<std::mutex> lock(breakpointsMtx); |
| 131 | bool isAdd = false; |
| 132 | for (std::shared_ptr<BreakPoint>& bp : breakpoints) |
| 133 | { |
| 134 | if (bp->line == breakpoint->line && CompareIgnoreCase(bp->file, breakpoint->file) == 0) |
| 135 | { |
| 136 | bp = breakpoint; |
| 137 | isAdd = true; |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | if (!isAdd) |
| 142 | { |
| 143 | breakpoints.push_back(breakpoint); |
| 144 | } |
| 145 | |
| 146 | RefreshLineSet(); |
| 147 | } |
| 148 | |
| 149 | std::vector<std::shared_ptr<BreakPoint>> EmmyDebuggerManager::GetBreakpoints() |
| 150 | { |
no test coverage detected