forked from qt-creator/qt-creator
Debugger: Support only C++ on Windows post-mortem debugging
Change-Id: Idc759cb0a5a64fe33ea54eb4d0bf21df2a651bd9 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -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
|
|||||||
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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user