forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.0'
Change-Id: I89c52ca2145a43c94d3366367ba72fde605dd577
This commit is contained in:
@@ -87,19 +87,6 @@ LldbEngine::LldbEngine(const DebuggerRunParameters &startParameters)
|
||||
m_lastAgentId = 0;
|
||||
setObjectName(QLatin1String("LldbEngine"));
|
||||
|
||||
if (startParameters.useTerminal) {
|
||||
#ifdef Q_OS_WIN
|
||||
// Windows up to xp needs a workaround for attaching to freshly started processes. see proc_stub_win
|
||||
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
|
||||
m_stubProc.setMode(ConsoleProcess::Suspend);
|
||||
else
|
||||
m_stubProc.setMode(ConsoleProcess::Debug);
|
||||
#else
|
||||
m_stubProc.setMode(ConsoleProcess::Debug);
|
||||
m_stubProc.setSettings(ICore::settings());
|
||||
#endif
|
||||
}
|
||||
|
||||
connect(action(AutoDerefPointers), &SavedAction::valueChanged,
|
||||
this, &LldbEngine::updateLocals);
|
||||
connect(action(CreateFullBacktrace), &QAction::triggered,
|
||||
@@ -192,7 +179,26 @@ bool LldbEngine::prepareCommand()
|
||||
|
||||
void LldbEngine::setupEngine()
|
||||
{
|
||||
// FIXME: We can't handle terminals yet.
|
||||
if (runParameters().useTerminal) {
|
||||
qWarning("Run in Terminal is not supported yet with the LLDB backend");
|
||||
showMessage(tr("Run in Terminal is not supported yet with the LLDB backend"), AppError);
|
||||
runParameters().useTerminal = false;
|
||||
}
|
||||
|
||||
if (runParameters().useTerminal) {
|
||||
QTC_CHECK(false); // See above.
|
||||
#ifdef Q_OS_WIN
|
||||
// Windows up to xp needs a workaround for attaching to freshly started processes. see proc_stub_win
|
||||
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
|
||||
m_stubProc.setMode(ConsoleProcess::Suspend);
|
||||
else
|
||||
m_stubProc.setMode(ConsoleProcess::Debug);
|
||||
#else
|
||||
m_stubProc.setMode(ConsoleProcess::Debug);
|
||||
m_stubProc.setSettings(ICore::settings());
|
||||
#endif
|
||||
|
||||
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << state());
|
||||
showMessage(_("TRYING TO START ADAPTER"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user