Debugger: Allow debuggerruncontrol creation with warnings

Change-Id: I50092cb99c24ab31fafb1b5ce3c0b371adc42f38
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2016-11-09 14:48:08 +01:00
parent efd7a141fa
commit beec36c7d3
2 changed files with 7 additions and 3 deletions

View File

@@ -294,7 +294,7 @@ QList<Task> DebuggerKitInformation::validateDebugger(const Kit *k)
if (errors & DebuggerDoesNotMatch) {
const QString message = tr("The ABI of the selected debugger does not "
"match the toolchain ABI.");
result << Task(Task::Error, message, FileName(), -1, id);
result << Task(Task::Warning, message, FileName(), -1, id);
}
return result;
}

View File

@@ -474,8 +474,12 @@ static DebuggerRunControl *doCreate(DebuggerRunParameters rp, RunConfiguration *
if (rp.languages & CppLanguage) {
const QList<Task> tasks = DebuggerKitInformation::validateDebugger(kit);
if (!tasks.isEmpty()) {
foreach (const Task &t, tasks)
foreach (const Task &t, tasks) {
if (t.type == Task::Warning)
continue;
errors->append(t.description);
}
if (!errors->isEmpty())
return 0;
}
}