From 5f26fe6298577cd75c77bddc67586f19c33da43d Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 11 Jun 2019 07:37:41 +0200 Subject: Debugger: Robustify DebuggerRunTool::showMessage() Seems to be possible to trigger in a failing MinGW start on Windows. Change-Id: Ica93c29ad677c24688a8cf2c5a0f1018471ffe51 Reviewed-by: Christian Stenger --- src/plugins/debugger/debuggerruncontrol.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/debugger') diff --git a/src/plugins/debugger/debuggerruncontrol.cpp b/src/plugins/debugger/debuggerruncontrol.cpp index 245f3a15da..f68d637e1f 100644 --- a/src/plugins/debugger/debuggerruncontrol.cpp +++ b/src/plugins/debugger/debuggerruncontrol.cpp @@ -1011,6 +1011,8 @@ void DebuggerRunTool::showMessage(const QString &msg, int channel, int timeout) if (channel == ConsoleOutput) debuggerConsole()->printItem(ConsoleItem::DefaultType, msg); + QTC_ASSERT(m_engine, qDebug() << msg; return); + m_engine->showMessage(msg, channel, timeout); if (m_engine2) m_engine->showMessage(msg, channel, timeout); -- cgit v1.2.1