Commit 7d50aa29 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

work around -exec-until breakage on S60 gdb 6.4

parent 09b17064
......@@ -1616,8 +1616,13 @@ void GdbEngine::runToLineExec(const QString &fileName, int lineNumber)
setTokenBarrier();
setState(InferiorRunningRequested);
showStatusMessage(tr("Run to line %1 requested...").arg(lineNumber), 5000);
postCommand(_("-exec-until %1:%2").arg(fileName).arg(lineNumber),
RunRequest, CB(handleExecContinue));
if (m_gdbVersion < 60500) { // We just know that 6.4 on S60 is broken
postCommand(_("tbreak %1:%2").arg(fileName).arg(lineNumber));
postCommand(_("-exec-continue"), RunRequest, CB(handleExecContinue));
} else {
postCommand(_("-exec-until %1:%2").arg(fileName).arg(lineNumber),
RunRequest, CB(handleExecContinue));
}
}
void GdbEngine::runToFunctionExec(const QString &functionName)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment