Commit e242929d authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Finish Debugger session properly, releasing all files.

parent 341fba10
......@@ -760,6 +760,12 @@ void CdbDebugEnginePrivate::endDebugging(EndDebuggingMode em)
setDebuggeeHandles(0, 0);
// Clean up resources (open files, etc.)
hr = m_cif.debugClient->EndSession(DEBUG_END_PASSIVE);
if (FAILED(hr))
errorMessage += msgComFailed("EndSession", hr);
if (!errorMessage.isEmpty()) {
errorMessage = QString::fromLatin1("There were errors trying to end debugging: %1").arg(errorMessage);
m_debuggerManagerAccess->showDebuggerOutput(QLatin1String("error"), errorMessage);
Supports Markdown
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