Commit 5f03803c authored by Tobias Nätterlund's avatar Tobias Nätterlund Committed by hjk

QNX: Fixed launching application when debugging on Windows

Change-Id: Ib87c028d071f7cf35ca462fb5bd71db9a6dfe1b8
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 0d092b05
......@@ -347,8 +347,9 @@ void GdbRemoteServerEngine::runEngine()
const QString remoteExecutable = startParameters().remoteExecutable;
if (!remoteExecutable.isEmpty()) {
// Cannot use -exec-run for QNX gdb as it does not support path parameter for the MI call
const QByteArray command = m_isQnxGdb ? "run" : "-exec-run";
// Cannot use -exec-run for QNX gdb 7.4 as it does not support path parameter for the MI call
const bool useRun = m_isQnxGdb && m_gdbVersion > 70300;
const QByteArray command = useRun ? "run" : "-exec-run";
postCommand(command + " " + remoteExecutable.toLocal8Bit(), GdbEngine::RunRequest, CB(handleExecRun));
} else {
notifyEngineRunAndInferiorStopOk();
......
Markdown is supported
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