| 581 | } |
| 582 | |
| 583 | void convertTodbp(const array<IDataBreakpoint> &dataBreakpoints, array<DataBreakpoint> &result) |
| 584 | { |
| 585 | for (auto bp : dataBreakpoints) { |
| 586 | DataBreakpoint dbp; |
| 587 | dbp.accessType = bp.accessType; |
| 588 | // An optional expression for conditional breakpoints. |
| 589 | dbp.condition = bp.condition; |
| 590 | // An id representing the data. This id is returned from the |
| 591 | // dataBreakpointInfo request. |
| 592 | dbp.dataId = bp.dataId; |
| 593 | // An optional expression that controls how many hits of the breakpoint are |
| 594 | // ignored. The backend is expected to interpret the expression as needed. |
| 595 | dbp.hitCondition = bp.hitCondition; |
| 596 | result.push_back(dbp); |
| 597 | } |
| 598 | } |
| 599 | |
| 600 | void DebugSession::sendDataBreakpoints(dap::array<IDataBreakpoint> dataBreakpoints) |
| 601 | { |