Debugger[CDB]: Add thread names.

This commit is contained in:
Friedemann Kleint
2010-09-17 13:28:50 +02:00
parent fd6084532b
commit 88bc157b7c
8 changed files with 34 additions and 7 deletions

View File

@@ -152,7 +152,8 @@ ComInterfaces::ComInterfaces() :
debugSystemObjects(0),
debugSymbols(0),
debugRegisters(0),
debugDataSpaces(0)
debugDataSpaces(0),
debugAdvanced(0)
{
}
@@ -250,6 +251,8 @@ CoreEngine::~CoreEngine()
m_cif.debugRegisters->Release();
if (m_cif.debugDataSpaces)
m_cif.debugDataSpaces->Release();
if (m_cif.debugAdvanced)
m_cif.debugAdvanced->Release();
}
bool CoreEngine::init(const QString &dllEnginePath, QString *errorMessage)
@@ -310,6 +313,12 @@ bool CoreEngine::init(const QString &dllEnginePath, QString *errorMessage)
return false;
}
hr = lib.debugCreate( __uuidof(IDebugAdvanced2), reinterpret_cast<void**>(&m_cif.debugAdvanced));
if (FAILED(hr)) {
*errorMessage = QString::fromLatin1("Creation of IDebugAdvanced2 failed: %1").arg(msgDebugEngineComResult(hr));
return false;
}
if (debug)
qDebug() << QString::fromLatin1("CDB Initialization succeeded, interrupt time out %1s.").arg(getInterruptTimeOutSecs(m_cif.debugControl));
return true;