debugger: move watch dog initialization to a better place

It was missed by the remote adapter before.
This commit is contained in:
hjk
2010-09-06 11:29:52 +02:00
parent eb498ee428
commit 053f36c45d

View File

@@ -802,6 +802,9 @@ void GdbEngine::flushCommand(const GdbCommand &cmd0)
m_gdbAdapter->write(cmd.command + "\r\n");
// Start Watchdog.
if (m_commandTimer->interval() <= 20000)
m_commandTimer->setInterval(commandTimeoutTime());
m_commandTimer->start();
//if (cmd.flags & LosesChild)
@@ -4019,8 +4022,6 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr
}
showMessage(_("GDB STARTED, INITIALIZING IT"));
m_commandTimer->setInterval(commandTimeoutTime());
postCommand("show version", CB(handleShowVersion));
//postCommand("-enable-timings");