Commit 053f36c4 authored by hjk's avatar hjk
Browse files

debugger: move watch dog initialization to a better place

It was missed by the remote adapter before.
parent eb498ee4
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment