Commit 7dc2cb9d authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk

Debugger: Support only C++ on Windows post-mortem debugging

Change-Id: Idc759cb0a5a64fe33ea54eb4d0bf21df2a651bd9
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 309da0b4
...@@ -1173,6 +1173,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it, ...@@ -1173,6 +1173,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
} }
DebuggerRunParameters rp; DebuggerRunParameters rp;
rp.startMode = AttachCrashedExternal; rp.startMode = AttachCrashedExternal;
rp.languages = CppLanguage;
rp.crashParameter = it->section(QLatin1Char(':'), 0, 0); rp.crashParameter = it->section(QLatin1Char(':'), 0, 0);
rp.attachPID = it->section(QLatin1Char(':'), 1, 1).toULongLong(); rp.attachPID = it->section(QLatin1Char(':'), 1, 1).toULongLong();
rp.displayName = tr("Crashed process %1").arg(rp.attachPID); rp.displayName = tr("Crashed process %1").arg(rp.attachPID);
......
...@@ -485,11 +485,12 @@ void DebuggerRunControlCreator::enrich(const RunConfiguration *runConfig, const ...@@ -485,11 +485,12 @@ void DebuggerRunControlCreator::enrich(const RunConfiguration *runConfig, const
m_rp.masterEngineType = QmlEngineType; m_rp.masterEngineType = QmlEngineType;
service = QmlDebug::QmlDebuggerServices; service = QmlDebug::QmlDebuggerServices;
} }
if (m_rp.startMode != AttachExternal) if (m_rp.startMode != AttachExternal && m_rp.startMode != AttachCrashedExternal) {
QtcProcess::addArg(&m_rp.inferior.commandLineArguments, QtcProcess::addArg(&m_rp.inferior.commandLineArguments,
(m_rp.languages & CppLanguage) && m_rp.nativeMixedEnabled ? (m_rp.languages & CppLanguage) && m_rp.nativeMixedEnabled ?
QmlDebug::qmlDebugNativeArguments(service, false) : QmlDebug::qmlDebugNativeArguments(service, false) :
QmlDebug::qmlDebugTcpArguments(service, m_rp.qmlServerPort)); QmlDebug::qmlDebugTcpArguments(service, m_rp.qmlServerPort));
}
} }
} }
......
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