forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user