forked from qt-creator/qt-creator
Debugger: Allow debuggerruncontrol creation with warnings
Change-Id: I50092cb99c24ab31fafb1b5ce3c0b371adc42f38 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -474,9 +474,13 @@ 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);
|
||||
return 0;
|
||||
}
|
||||
if (!errors->isEmpty())
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user