From 47def926c7172dfff570cfc9b7192e201c0ee3d3 Mon Sep 17 00:00:00 2001 From: cnavarro <c.navarrogarcia@gmail.com> Date: Sat, 3 Mar 2012 01:48:43 +0100 Subject: [PATCH] Fix non-stop mode in gdb when you click continue When you hit a brekpoint in gdb non-stop mode, if you click continue in the UI the debugger was killed if the current thread is not the one being stopped. This is anoying as gdb does not change current thread automatically. The fix shows the error but does not kill the inferior. Fixed style issues again. Change-Id: I1a2e484108e936581c7b82c985f2b057263e3d6b Reviewed-by: hjk <qthjk@ovi.com> --- src/plugins/debugger/gdb/gdbengine.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 195443ad3b7..e7aab3ddd48 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1801,6 +1801,9 @@ void GdbEngine::handleExecuteContinue(const GdbResponse &response) // FIXME: Fix translation in master. showStatusMessage(QString::fromLocal8Bit(msg), 5000); gotoLocation(stackHandler()->currentFrame()); + } else if (msg.startsWith("Cannot execute this command while the selected thread is running.")) { + showExecutionError(QString::fromLocal8Bit(msg)); + notifyInferiorRunFailed() ; } else { showExecutionError(QString::fromLocal8Bit(msg)); notifyInferiorIll(); -- GitLab