Debugger[CDBs 32bit]: Fix 'Jump to Line'.

PC register is 'rip' for 64bit and 'eip' for 32bit.

Task-number: QTCREATORBUG-3361
This commit is contained in:
Friedemann Kleint
2010-12-13 17:19:21 +01:00
parent d17cd56744
commit bee04cf1f5
2 changed files with 9 additions and 2 deletions

View File

@@ -1035,12 +1035,18 @@ void CdbEngine::executeJumpToLine(const QString &fileName, int lineNumber)
if (!setRegisterValueU64(m_d->interfaces().debugControl,
m_d->interfaces().debugRegisters,
QLatin1String("rip"), address, &errorMessage))
#ifdef Q_OS_WIN64
QLatin1String("rip"),
#else
QLatin1String("eip"),
#endif
address, &errorMessage))
break;
showMessage(QString::fromLatin1("Jumping to %1:%2 (0x%3)...").
arg(QDir::toNativeSeparators(fileName)).arg(lineNumber).arg(address, 0, 16));
StackFrame frame;
frame.usable = true;
frame.file = fileName;
frame.line = lineNumber;
gotoLocation(frame, true);