blob: 4643310bfffccf35a7ee2012c7638a7ebf71dba0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|