From 5f03803cf82c22cb1bf2be39193ffe00df600eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20N=C3=A4tterlund?= Date: Wed, 5 Sep 2012 13:13:58 +0200 Subject: [PATCH] QNX: Fixed launching application when debugging on Windows Change-Id: Ib87c028d071f7cf35ca462fb5bd71db9a6dfe1b8 Reviewed-by: hjk --- src/plugins/debugger/gdb/remotegdbserveradapter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/gdb/remotegdbserveradapter.cpp b/src/plugins/debugger/gdb/remotegdbserveradapter.cpp index f895ca4dc05..04a15d1d6d3 100644 --- a/src/plugins/debugger/gdb/remotegdbserveradapter.cpp +++ b/src/plugins/debugger/gdb/remotegdbserveradapter.cpp @@ -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();