From 40e4837d63fc33b4612b53d9b141531671356b0f Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 12 Jan 2010 13:49:56 +0100 Subject: [PATCH] debugger: add debug message for non-critical timeouts --- src/plugins/debugger/gdb/gdbengine.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 1793a0b91a6..bcafd6c563b 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -841,7 +841,11 @@ void GdbEngine::commandTimeout() const GdbCommand &cmd = m_cookieForToken.value(key); if (!(cmd.flags & NonCriticalResponse)) killIt = true; - debugMessage(_(" %1: %2 => %3").arg(key).arg(_(cmd.command)).arg(_(cmd.callbackName))); + QByteArray msg = QByteArray::number(key); + msg += ": " + cmd.command + " => "; + QTC_ASSERT(cmd.callbackName, /**/); + msg += cmd.callbackName; + debugMessage(_(msg)); } if (killIt) { debugMessage(_("TIMED OUT WAITING FOR GDB REPLY. COMMANDS STILL IN PROGRESS:")); @@ -865,6 +869,8 @@ void GdbEngine::commandTimeout() } else { debugMessage(_("CONTINUE DEBUGGER AS REQUESTED BY USER")); } + } else { + debugMessage(_("\nNON-CRITICAL TIMEOUT\n")); } } @@ -4495,6 +4501,8 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr postCommand("set breakpoint pending on"); postCommand("set print elements 10000"); + // Produces a few messages during symtab loading + //postCommand("set verbose on"); //postCommand("set substitute-path /var/tmp/qt-x11-src-4.5.0 " // "/home/sandbox/qtsdk-2009.01/qt");