MCPcopy Create free account
hub / github.com/KDE/kdevelop / execute

Method execute

plugins/debuggercommon/midebugger.cpp:66–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void MIDebugger::execute(std::unique_ptr<MICommand> command)
67{
68 m_currentCmd = std::move(command);
69 QString commandText = m_currentCmd->cmdToSend();
70
71 qCDebug(DEBUGGERCOMMON) << "SEND:" << commandText.trimmed();
72
73 QByteArray commandUtf8 = commandText.toUtf8();
74
75 m_process->write(commandUtf8);
76 m_currentCmd->markAsSubmitted();
77
78 const QString prettyCmd = QLatin1String("(gdb) ") + m_currentCmd->cmdToSend();
79 if (m_currentCmd->isUserCommand())
80 emit userCommandOutput(prettyCmd);
81 else
82 emit internalCommandOutput(prettyCmd);
83}
84
85bool MIDebugger::isReady() const
86{

Callers 1

executeCmdMethod · 0.45

Calls 4

markAsSubmittedMethod · 0.80
isUserCommandMethod · 0.80
cmdToSendMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected