forked from qt-creator/qt-creator
Debugger: Replace macro usages with HostOsInfo
Change-Id: I6c42e20d7ef5596577a8b13737aba64b7783b7bd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
061582681c
commit
d407dfac65
@@ -193,16 +193,16 @@ void LldbEngine::setupEngine()
|
||||
|
||||
if (runParameters().useTerminal) {
|
||||
QTC_CHECK(false); // See above.
|
||||
#ifdef Q_OS_WIN
|
||||
if (HostOsInfo::isWindowsHost()) {
|
||||
// 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
|
||||
} 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