From 47ab61ad119bb9ef610d65868f6808f804232258 Mon Sep 17 00:00:00 2001 From: con Date: Tue, 12 Jan 2010 15:22:02 +0100 Subject: [PATCH] Fixes: Missing locals & watchers when debugging on Snow Leopard Task-number: QTCREATORBUG-436 Reviewed-by: hjk (cherry picked from commit ff066d5e76a9f64a9e7b3f5755fccb8695f3a9ad) --- src/plugins/debugger/gdb/gdbengine.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 3912d03fbc3..4a183e57967 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -3416,6 +3416,13 @@ void GdbEngine::handleDebuggingHelperValue2(const GdbResponse &response) WatchData data = response.cookie.value(); QTC_ASSERT(data.isValid(), return); + // The real dumper might have aborted without giving any answers. + // Remove traces of the question, too. + if (m_cookieForToken.contains(response.token - 1)) { + debugMessage(_("DETECTING LOST COMMAND %1").arg(response.token - 1)); + --m_pendingRequests; + } + //qDebug() << "CUSTOM VALUE RESULT:" << response.toString(); //qDebug() << "FOR DATA:" << data.toString() << response.resultClass; if (response.resultClass != GdbResultDone) {