forked from qt-creator/qt-creator
Debugger: Validate debugger for C++ debugging
Task-number: QTCREATORBUG-8059 Change-Id: Icc277f47f46c1d7276d860e8bf1c133198020d78 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -668,6 +668,8 @@ bool fillParameters(DebuggerStartParameters *sp, const Kit *kit /* = 0 */, QStri
|
|||||||
*errorMessage = DebuggerKitInformation::tr("No kit found.");
|
*errorMessage = DebuggerKitInformation::tr("No kit found.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// validate debugger if C++ debugging is enabled
|
||||||
|
if (sp->languages & CppLanguage) {
|
||||||
const QList<ProjectExplorer::Task> tasks = DebuggerKitInformation::validateDebugger(kit);
|
const QList<ProjectExplorer::Task> tasks = DebuggerKitInformation::validateDebugger(kit);
|
||||||
if (!tasks.isEmpty()) {
|
if (!tasks.isEmpty()) {
|
||||||
sp->startMode = NoStartMode;
|
sp->startMode = NoStartMode;
|
||||||
@@ -680,7 +682,7 @@ bool fillParameters(DebuggerStartParameters *sp, const Kit *kit /* = 0 */, QStri
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
sp->cppEngineType = DebuggerKitInformation::engineType(kit);
|
sp->cppEngineType = DebuggerKitInformation::engineType(kit);
|
||||||
sp->sysRoot = SysRootKitInformation::sysRoot(kit).toString();
|
sp->sysRoot = SysRootKitInformation::sysRoot(kit).toString();
|
||||||
sp->debuggerCommand = DebuggerKitInformation::debuggerCommand(kit).toString();
|
sp->debuggerCommand = DebuggerKitInformation::debuggerCommand(kit).toString();
|
||||||
|
Reference in New Issue
Block a user