Debugger: Remove assert

It is perfectly valid for a kit to not have a debugger. Do not
soft-assert in that case.

Change-Id: I89b7a125935188c0ce9479ea68cd403b59e72563
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-02-02 11:35:10 +01:00
parent 3f4d107b0b
commit da05ddc339

View File

@@ -335,8 +335,9 @@ KitInformation::ItemList DebuggerKitInformation::toUserOutput(const Kit *k) cons
FileName DebuggerKitInformation::debuggerCommand(const Kit *k)
{
const DebuggerItem *item = debugger(k);
QTC_ASSERT(item, return FileName());
return item->command();
if (item)
return item->command();
return FileName();
}
DebuggerEngineType DebuggerKitInformation::engineType(const Kit *k)