kensington    15/08/03 13:09:33

  Added:                kdevelop-4.7.1-gdb.patch
  Log:
  Backport patch from upstream to solve remote debugging error wrt bug #544410.
  
  (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 
0x06B1F38DCA45A1EC!)

Revision  Changes    Path
1.1                  dev-util/kdevelop/files/kdevelop-4.7.1-gdb.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/kdevelop/files/kdevelop-4.7.1-gdb.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/kdevelop/files/kdevelop-4.7.1-gdb.patch?rev=1.1&content-type=text/plain

Index: kdevelop-4.7.1-gdb.patch
===================================================================
>From 633b49c4bd7e434185c69a3dea1841755b75dcba Mon Sep 17 00:00:00 2001
From: Fernando Rodriguez <frodriguez.develo...@outlook.com>
Date: Sun, 2 Aug 2015 16:20:37 +0200
Subject: [PATCH] Set the replyReceived flag only if the current command is
 exec-run.

Fixes various MI errors in remote debugging scenarios.

BUG: 346827
---
 debuggers/gdb/gdb.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debuggers/gdb/gdb.cpp b/debuggers/gdb/gdb.cpp
index 4642087..df9f3b0 100644
--- a/debuggers/gdb/gdb.cpp
+++ b/debuggers/gdb/gdb.cpp
@@ -255,7 +255,8 @@ void GDB::processLine(const QByteArray& line)
                emit internalCommandOutput(QString::fromUtf8(line) + '\n');
 
                if (result.reason == "thread-group-started") {
-                   receivedReply_ = true;
+                   if (currentCmd_->cmdToSend().contains("exec-run"))
+                       receivedReply_ = true;
                    //     (gdb) -exec-run
                    //     =thread-group-started,id="i1",pid="16768"
                    if (line.contains("pid=\"")) {
-- 
2.4.6





Reply via email to