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
@@ -49,16 +49,16 @@ namespace Internal {
|
|||||||
GdbTermEngine::GdbTermEngine(const DebuggerRunParameters &startParameters)
|
GdbTermEngine::GdbTermEngine(const DebuggerRunParameters &startParameters)
|
||||||
: GdbEngine(startParameters)
|
: GdbEngine(startParameters)
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_WIN
|
if (HostOsInfo::isWindowsHost()) {
|
||||||
// Windows up to xp needs a workaround for attaching to freshly started processes. see proc_stub_win
|
// Windows up to xp needs a workaround for attaching to freshly started processes. see proc_stub_win
|
||||||
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
|
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
|
||||||
m_stubProc.setMode(ConsoleProcess::Suspend);
|
m_stubProc.setMode(ConsoleProcess::Suspend);
|
||||||
else
|
else
|
||||||
m_stubProc.setMode(ConsoleProcess::Debug);
|
m_stubProc.setMode(ConsoleProcess::Debug);
|
||||||
#else
|
} else {
|
||||||
m_stubProc.setMode(ConsoleProcess::Debug);
|
m_stubProc.setMode(ConsoleProcess::Debug);
|
||||||
m_stubProc.setSettings(Core::ICore::settings());
|
m_stubProc.setSettings(Core::ICore::settings());
|
||||||
#endif
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GdbTermEngine::~GdbTermEngine()
|
GdbTermEngine::~GdbTermEngine()
|
||||||
|
|||||||
@@ -193,16 +193,16 @@ void LldbEngine::setupEngine()
|
|||||||
|
|
||||||
if (runParameters().useTerminal) {
|
if (runParameters().useTerminal) {
|
||||||
QTC_CHECK(false); // See above.
|
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
|
// Windows up to xp needs a workaround for attaching to freshly started processes. see proc_stub_win
|
||||||
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
|
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
|
||||||
m_stubProc.setMode(ConsoleProcess::Suspend);
|
m_stubProc.setMode(ConsoleProcess::Suspend);
|
||||||
else
|
else
|
||||||
m_stubProc.setMode(ConsoleProcess::Debug);
|
m_stubProc.setMode(ConsoleProcess::Debug);
|
||||||
#else
|
} else {
|
||||||
m_stubProc.setMode(ConsoleProcess::Debug);
|
m_stubProc.setMode(ConsoleProcess::Debug);
|
||||||
m_stubProc.setSettings(ICore::settings());
|
m_stubProc.setSettings(ICore::settings());
|
||||||
#endif
|
}
|
||||||
|
|
||||||
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << state());
|
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << state());
|
||||||
showMessage("TRYING TO START ADAPTER");
|
showMessage("TRYING TO START ADAPTER");
|
||||||
|
|||||||
Reference in New Issue
Block a user