From 43cc49940980d26201cbf466308e9748f6c46a1b Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 4 Apr 2017 17:20:23 +0300 Subject: [PATCH] Debugger: Terminate gracefully when the debuggee is invalid To reproduce, try to debug an empty exe file as a terminal app on Windows. Change-Id: Ie47848be04b8f7d4a8dae485d938a71febfed1ab Reviewed-by: hjk --- src/plugins/debugger/gdb/termgdbadapter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/debugger/gdb/termgdbadapter.cpp b/src/plugins/debugger/gdb/termgdbadapter.cpp index 359f26f831d..e1ace5fca83 100644 --- a/src/plugins/debugger/gdb/termgdbadapter.cpp +++ b/src/plugins/debugger/gdb/termgdbadapter.cpp @@ -186,6 +186,7 @@ void GdbTermEngine::interruptInferior2() void GdbTermEngine::stubError(const QString &msg) { Core::AsynchronousMessageBox::critical(tr("Debugger Error"), msg); + notifyEngineIll(); } void GdbTermEngine::stubExited()