From 232a1272d4a185142b8f7640e74321c7b640060f Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Thu, 10 May 2012 14:49:13 +0200 Subject: [PATCH] Gdb: Print missing tokens in timeout Change-Id: I5a5693fa2c60511ee581bb2b4f5fa3f5604d0e42 Reviewed-by: hjk --- src/plugins/debugger/gdb/gdbengine.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index eedce6674e7..d016e62a3cb 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1034,7 +1034,12 @@ void GdbEngine::commandTimeout() showMessage(_(msg)); } if (killIt) { - showMessage(_("TIMED OUT WAITING FOR GDB REPLY. COMMANDS STILL IN PROGRESS:")); + QStringList commands; + foreach (const GdbCommand &cookie, m_cookieForToken) + commands << QString(_("\"%1\"")).arg( + QString::fromLatin1(cookie.command)); + showMessage(_("TIMED OUT WAITING FOR GDB REPLY. " + "COMMANDS STILL IN PROGRESS: ") + commands.join(_(", "))); int timeOut = m_commandTimer.interval(); //m_commandTimer.stop(); const QString msg = tr("The gdb process has not responded "