debugger: first shot at combined cpp/qml stepping

This commit is contained in:
hjk
2011-01-14 17:08:59 +01:00
parent 349ff0f1c7
commit 1aef962e5a
5 changed files with 42 additions and 10 deletions

View File

@@ -4502,6 +4502,24 @@ void GdbEngine::handleRemoteSetupFailed(const QString &message)
m_gdbAdapter->handleRemoteSetupFailed(message);
}
bool GdbEngine::prepareForQmlBreak()
{
QTC_ASSERT(isSlaveEngine(), return false);
postCommand("-break-insert -t qscriptfunction.cpp:82",
NeedsStop, CB(handleQmlBreakpoint));
return true;
}
void GdbEngine::handleQmlBreakpoint(const GdbResponse &response)
{
if (response.resultClass == GdbResultDone) {
qDebug() << "RESPONSE: " << response.toString();
}
QTC_ASSERT(masterEngine(), return);
masterEngine()->handlePrepareForQmlBreak();
}
//
// Factory
//