changed mode of stub to Utils::ConsoleProcess::Suspend

for gdb under Vista an newer Windows versions
fixes skipping a breakpoint in the first lines in these versions

Change-Id: I611ef0244cb7ceca9e86ed35220ab3200cc55c45
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
David Schulz
2011-12-28 15:24:05 +01:00
committed by hjk
parent faf65803c2
commit 785b82177f

View File

@@ -61,8 +61,15 @@ namespace Internal {
TermGdbAdapter::TermGdbAdapter(GdbEngine *engine)
: AbstractGdbAdapter(engine)
{
#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(Utils::ConsoleProcess::Suspend);
} else {
m_stubProc.setMode(Utils::ConsoleProcess::Debug);
}
#else
m_stubProc.setMode(Utils::ConsoleProcess::Debug);
#ifdef Q_OS_UNIX
m_stubProc.setSettings(Core::ICore::instance()->settings());
#endif