trk: work around stack trace problems

Asking gdb twice seems to work.
This commit is contained in:
hjk
2009-09-16 11:09:59 +02:00
parent 1066dad5ba
commit 61eadde63f

View File

@@ -1283,6 +1283,9 @@ void GdbEngine::reloadStack()
if (stackDepth && !m_gdbAdapter->isAdapter())
cmd += _(" 0 ") + QString::number(stackDepth);
postCommand(cmd, WatchUpdate, CB(handleStackListFrames), false);
// FIXME: gdb 6.4 likes to be asked twice
if (m_gdbAdapter->isAdapter())
postCommand(cmd, WatchUpdate, CB(handleStackListFrames), false);
}
void GdbEngine::handleAsyncOutput2(const GdbResultRecord &, const QVariant &cookie)