summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/kdevelop/files/kdevelop-4.7.1-gdb.patch')
-rw-r--r--dev-util/kdevelop/files/kdevelop-4.7.1-gdb.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-util/kdevelop/files/kdevelop-4.7.1-gdb.patch b/dev-util/kdevelop/files/kdevelop-4.7.1-gdb.patch
new file mode 100644
index 000000000000..4643310bfffc
--- /dev/null
+++ b/dev-util/kdevelop/files/kdevelop-4.7.1-gdb.patch
@@ -0,0 +1,30 @@
+From 633b49c4bd7e434185c69a3dea1841755b75dcba Mon Sep 17 00:00:00 2001
+From: Fernando Rodriguez <frodriguez.developer@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
+