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) {
|
if (errors & DebuggerDoesNotMatch) {
|
||||||
const QString message = tr("The ABI of the selected debugger does not "
|
const QString message = tr("The ABI of the selected debugger does not "
|
||||||
"match the toolchain ABI.");
|
"match the toolchain ABI.");
|
||||||
result << Task(Task::Error, message, FileName(), -1, id);
|
result << Task(Task::Warning, message, FileName(), -1, id);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@@ -474,8 +474,12 @@ static DebuggerRunControl *doCreate(DebuggerRunParameters rp, RunConfiguration *
|
|||||||
if (rp.languages & CppLanguage) {
|
if (rp.languages & CppLanguage) {
|
||||||
const QList<Task> tasks = DebuggerKitInformation::validateDebugger(kit);
|
const QList<Task> tasks = DebuggerKitInformation::validateDebugger(kit);
|
||||||
if (!tasks.isEmpty()) {
|
if (!tasks.isEmpty()) {
|
||||||
foreach (const Task &t, tasks)
|
foreach (const Task &t, tasks) {
|
||||||
|
if (t.type == Task::Warning)
|
||||||
|
continue;
|
||||||
errors->append(t.description);
|
errors->append(t.description);
|
||||||
|
}
|
||||||
|
if (!errors->isEmpty())
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user