Debugger: Replace macro usages with HostOsInfo

Change-Id: I6c42e20d7ef5596577a8b13737aba64b7783b7bd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Orgad Shaneh
2016-09-10 22:58:25 +03:00
committed by Orgad Shaneh
parent 061582681c
commit d407dfac65
2 changed files with 12 additions and 12 deletions

View File

@@ -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");