forked from qt-creator/qt-creator
Debugger: Simplify use of DebuggerEnginePrivate members
Each engine has now the RunTool pointer, not just the master. Change-Id: I6bab026998d5da5da82224bfaf4a93d3cfb3a898 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -3221,8 +3221,9 @@ void GdbEngine::handleMakeSnapshot(const DebuggerResponse &response, const QStri
|
||||
const StackFrame &frame = frames.at(0);
|
||||
function = frame.function + ":" + QString::number(frame.line);
|
||||
}
|
||||
QTC_ASSERT(runControl()->runConfiguration(), return);
|
||||
auto rc = new RunControl(runControl()->runConfiguration(), ProjectExplorer::Constants::DEBUG_RUN_MODE);
|
||||
auto runConfig = runTool()->runControl()->runConfiguration();
|
||||
QTC_ASSERT(runConfig, return);
|
||||
auto rc = new RunControl(runConfig, ProjectExplorer::Constants::DEBUG_RUN_MODE);
|
||||
auto debugger = new DebuggerRunTool(rc);
|
||||
debugger->setStartMode(AttachCore);
|
||||
debugger->setRunControlName(function + ": " + QDateTime::currentDateTime().toString());
|
||||
|
||||
Reference in New Issue
Block a user