diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index dde22527f5a136fd18151866f0521b7496423520..ed9860bbf82aa0ad367891b2f0075dd6a59c58da 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -195,8 +195,6 @@ GdbEngine::GdbEngine(DebuggerManager *manager) :
 
     m_commandTimer = new QTimer(this);
     m_commandTimer->setSingleShot(true);
-    QVariant timeOut = theDebuggerAction(GdbWatchdogTimeout)->value();
-    m_commandTimer->setInterval(1000 * qMax(20, timeOut.toInt()));
     connect(m_commandTimer, SIGNAL(timeout()), SLOT(commandTimeout()));
 
     // Needs no resetting in initializeVariables()
@@ -4376,7 +4374,8 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr
         SLOT(readGdbStandardError()));
 
     debugMessage(_("GDB STARTED, INITIALIZING IT"));
-    m_commandTimer->setInterval(commandTimeoutTime());
+    int timeOut = theDebuggerAction(GdbWatchdogTimeout)->value().toInt();
+    m_commandTimer->setInterval(1000 * qMax(20, timeOut));
 
     postCommand(_("show version"), CB(handleShowVersion));
     postCommand(_("-interpreter-exec console \"help bb\""),