forked from qt-creator/qt-creator
QNX: Fixed launching application when debugging on Windows
Change-Id: Ib87c028d071f7cf35ca462fb5bd71db9a6dfe1b8 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user