From e28968bf39df26e8300c7af752e1d4516a96ba27 Mon Sep 17 00:00:00 2001
From: con <qtc-committer@nokia.com>
Date: Tue, 12 Jan 2010 16:54:00 +0100
Subject: [PATCH] Also remove tokens that we consider "lost" from the list.

Reviewed-by: hjk
---
 src/plugins/debugger/gdb/gdbengine.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index 71b94245dd2..0e8439e515b 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -3418,8 +3418,12 @@ void GdbEngine::handleDebuggingHelperValue2(const GdbResponse &response)
     // The real dumper might have aborted without giving any answers.
     // Remove traces of the question, too.
     if (m_cookieForToken.contains(response.token - 1)) {
+        m_cookieForToken.remove(response.token - 1);
         debugMessage(_("DETECTING LOST COMMAND %1").arg(response.token - 1));
         --m_pendingRequests;
+        data.setError(WatchData::msgNotInScope());
+        insertData(data);
+        return;
     }
 
     //qDebug() << "CUSTOM VALUE RESULT:" << response.toString();
-- 
GitLab