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,19 +668,21 @@ 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;
|
||||||
}
|
}
|
||||||
const QList<ProjectExplorer::Task> tasks = DebuggerKitInformation::validateDebugger(kit);
|
// validate debugger if C++ debugging is enabled
|
||||||
if (!tasks.isEmpty()) {
|
if (sp->languages & CppLanguage) {
|
||||||
sp->startMode = NoStartMode;
|
const QList<ProjectExplorer::Task> tasks = DebuggerKitInformation::validateDebugger(kit);
|
||||||
if (errorMessage) {
|
if (!tasks.isEmpty()) {
|
||||||
foreach (const ProjectExplorer::Task &t, tasks) {
|
sp->startMode = NoStartMode;
|
||||||
if (errorMessage->isEmpty())
|
if (errorMessage) {
|
||||||
errorMessage->append(QLatin1Char('\n'));
|
foreach (const ProjectExplorer::Task &t, tasks) {
|
||||||
errorMessage->append(t.description);
|
if (errorMessage->isEmpty())
|
||||||
|
errorMessage->append(QLatin1Char('\n'));
|
||||||
|
errorMessage->append(t.description);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
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