forked from qt-creator/qt-creator
Debugger: Make DebuggerEngine::runCommand() virtual.
Allows default implementation of e.g. stack retrieval in the base class. Change-Id: I96460b19aa31347b2c863736b4ce2b5046eb4de6 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -75,9 +75,8 @@ void GdbAttachEngine::runEngine()
|
||||
{
|
||||
QTC_ASSERT(state() == EngineRunRequested, qDebug() << state());
|
||||
const qint64 pid = runParameters().attachPID;
|
||||
DebuggerCommand cmd("attach " + QByteArray::number(pid));
|
||||
cmd.callback = [this](const DebuggerResponse &r) { handleAttach(r); };
|
||||
runCommand(cmd);
|
||||
runCommand({"attach " + QByteArray::number(pid), NoFlags,
|
||||
[this](const DebuggerResponse &r) { handleAttach(r); }});
|
||||
showStatusMessage(tr("Attached to process %1.").arg(inferiorPid()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user