Commit b96b2a2b authored by hjk's avatar hjk
Browse files

debugger: add some possible explanation for the need to ask for stacktraces twice

parent 14b081f7
......@@ -1283,7 +1283,12 @@ 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
// FIXME: gdb 6.4 symbianelf likes to be asked twice. The first time it
// returns with "^error,msg="Previous frame identical to this frame
// (corrupt stack?)". Might be related to the fact that we can't
// access the memory belonging to the lower frames. But as we know
// this always happens, ask the second time immediately instead
// of waiting for the first request to fail.
if (m_gdbAdapter->isAdapter())
postCommand(cmd, WatchUpdate, CB(handleStackListFrames), false);
}
......
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