| 620 | } |
| 621 | |
| 622 | void DebugSession::sendInstructionBreakpoints(dap::array<IInstructionBreakpoint> instructionBreakpoints) |
| 623 | { |
| 624 | if (!raw) |
| 625 | return; |
| 626 | |
| 627 | if (!raw->readyForBreakpoints()) { |
| 628 | qInfo() << "break point not ready!"; |
| 629 | return; |
| 630 | } |
| 631 | |
| 632 | if (raw->readyForBreakpoints()) { |
| 633 | SetInstructionBreakpointsRequest request; |
| 634 | auto response = raw->setInstructionBreakpoints(request); |
| 635 | if (response.valid()) { |
| 636 | auto data = std::map<dap::string, dap::Breakpoint>(); |
| 637 | for (size_t i = 0; i < instructionBreakpoints.size(); ++i) { |
| 638 | data.insert(std::pair<dap::string, dap::Breakpoint>(instructionBreakpoints[i].getId(), response.get().response.breakpoints[i])); |
| 639 | } |
| 640 | |
| 641 | model->setBreakpointSessionData(id, capabilities(), data); |
| 642 | } |
| 643 | } |
| 644 | } |
| 645 | |
| 646 | dap::optional<dap::Breakpoint> DebugSession::getDebugProtocolBreakpoint(string &breakpointId) |
| 647 | { |
nothing calls this directly
no test coverage detected