| 1667 | } |
| 1668 | |
| 1669 | void DAPDebugger::handleAssemble(const QString &content) |
| 1670 | { |
| 1671 | if (content.isEmpty()) |
| 1672 | return; |
| 1673 | |
| 1674 | QString assemblerPath = CustomPaths::user(CustomPaths::Flags::Configures) + QDir::separator() + QString("Disassembler"); |
| 1675 | |
| 1676 | QFile file(assemblerPath); |
| 1677 | if (file.open(QIODevice::WriteOnly)) { |
| 1678 | QTextStream stream(&file); |
| 1679 | stream << content; |
| 1680 | file.close(); |
| 1681 | // avoid load manually. |
| 1682 | editor.setModifiedAutoReload(assemblerPath, true); |
| 1683 | |
| 1684 | editor.gotoLine(assemblerPath, 0); |
| 1685 | } |
| 1686 | } |
| 1687 | |
| 1688 | ProjectInfo DAPDebugger::getActiveProjectInfo() const |
| 1689 | { |