| 598 | } |
| 599 | |
| 600 | void DebugSession::sendDataBreakpoints(dap::array<IDataBreakpoint> dataBreakpoints) |
| 601 | { |
| 602 | if (!raw) |
| 603 | return; |
| 604 | |
| 605 | if (!raw->readyForBreakpoints()) { |
| 606 | qInfo() << "break point not ready!"; |
| 607 | return; |
| 608 | } |
| 609 | |
| 610 | dap::SetDataBreakpointsRequest request; |
| 611 | convertTodbp(dataBreakpoints, request.breakpoints); |
| 612 | auto response = raw->setDataBreakpoints(request); |
| 613 | if (response.valid()) { |
| 614 | auto data = std::map<dap::string, dap::Breakpoint>(); |
| 615 | for (size_t i = 0; i < dataBreakpoints.size(); ++i) { |
| 616 | data.insert(std::pair<dap::string, dap::Breakpoint>(dataBreakpoints[i].getId(), response.get().response.breakpoints[i])); |
| 617 | } |
| 618 | model->setBreakpointSessionData(id, capabilities(), data); |
| 619 | } |
| 620 | } |
| 621 | |
| 622 | void DebugSession::sendInstructionBreakpoints(dap::array<IInstructionBreakpoint> instructionBreakpoints) |
| 623 | { |
nothing calls this directly
no test coverage detected