MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / handleAssemble

Method handleAssemble

src/plugins/debugger/dap/dapdebugger.cpp:1669–1686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1667}
1668
1669void 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
1688ProjectInfo DAPDebugger::getActiveProjectInfo() const
1689{

Callers

nothing calls this directly

Calls 5

QStringClass · 0.50
isEmptyMethod · 0.45
openMethod · 0.45
closeMethod · 0.45
gotoLineMethod · 0.45

Tested by

no test coverage detected