aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerkitinformation.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2016-02-02 11:35:10 +0100
committerTobias Hunger <tobias.hunger@theqtcompany.com>2016-02-02 15:29:52 +0000
commitda05ddc33949b100f5d7ab0e9261a7456e7c4b7d (patch)
tree2b6dc653e44f2afcde95effcfabf494848417746 /src/plugins/debugger/debuggerkitinformation.cpp
parent3f4d107b0bb054fe0947cac2c4753d5c8270ba6e (diff)
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>
Diffstat (limited to 'src/plugins/debugger/debuggerkitinformation.cpp')
-rw-r--r--src/plugins/debugger/debuggerkitinformation.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/debugger/debuggerkitinformation.cpp b/src/plugins/debugger/debuggerkitinformation.cpp
index 350445efde..f277f03325 100644
--- a/src/plugins/debugger/debuggerkitinformation.cpp
+++ b/src/plugins/debugger/debuggerkitinformation.cpp
@@ -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)