Make 'step over' without stepping by instruction work with cdb.

By fixing a bug in CdbDebugEnginePrivate::setCodeLevel.

Reviewed-by: hjk
This commit is contained in:
Christian Kamm
2009-08-27 14:12:42 +02:00
parent 92d8a27178
commit 8bc81f4395

View File

@@ -400,7 +400,7 @@ bool CdbDebugEnginePrivate::setCodeLevel()
}
if (debugCDB)
qDebug() << Q_FUNC_INFO << "\nSetting code level to " << codeLevelName(codeLevel) << " (was" << codeLevelName(currentCodeLevel) << ')';
if (currentCodeLevel == currentCodeLevel)
if (currentCodeLevel == codeLevel)
return false;
hr = m_cif.debugControl->SetCodeLevel(codeLevel);
if (FAILED(hr)) {