You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/kdevelop/files/kdevelop-4.7.1-gdb.patch

31 lines
1.1 KiB

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