Commit 8213e5bd authored by hjk's avatar hjk

debugger: work on trk.

Something's visible in Locals&Watchers now!
parent 17f9204b
......@@ -1078,7 +1078,6 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data)
return;
}
//MAC: bool isFirstStop = data.findChild("bkptno").data() == "1";
//!MAC: startSymbolName == data.findChild("frame").findChild("func")
if (m_waitingForFirstBreakpointToBeHit) {
......@@ -1292,6 +1291,15 @@ void GdbEngine::handleAsyncOutput2(const GdbMi &data)
}
}
// FIXME: Hack, remove as soon as we get real stack traces.
if (m_gdbProc->isAdapter()) {
StackFrame f;
f.file = QString::fromLocal8Bit(fullName.data());
f.line = frame.findChild("line").data().toInt();
f.address = _(frame.findChild("addr").data());
q->gotoLocation(f, true);
}
//
// Stack
//
......@@ -2051,6 +2059,8 @@ void GdbEngine::sendInsertBreakpoint(int index)
// cmd += "-c " + data->condition + " ";
#else
QString cmd = _("-break-insert -f ");
if (m_gdbProc->isAdapter())
cmd = _("-break-insert ");
//if (!data->condition.isEmpty())
// cmd += _("-c ") + data->condition + ' ';
#endif
......
......@@ -1421,6 +1421,7 @@ void SymbianAdapter::attach(GdbEngine *engine) const
.arg(m_session.codeseg));
engine->postCommand(_("symbol-file \"%1\"").arg(fileName));
engine->postCommand(_("target remote ") + gdbServerName());
engine->attemptBreakpointSynchronization();
#endif
}
......
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