Qnx: Fix passing nto-executable

Change-Id: I6c1749a74d153a8dbbbef891e8eee230226e452d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
hjk
2023-03-14 17:42:39 +01:00
parent 821dce1e9d
commit 13baedad82

View File

@@ -4853,7 +4853,7 @@ void GdbEngine::handleTargetQnx(const DebuggerResponse &response)
if (rp.attachPID.isValid())
runCommand({"attach " + QString::number(rp.attachPID.pid()), CB(handleRemoteAttach)});
else if (!rp.inferior.command.isEmpty())
runCommand({"set nto-executable " + rp.inferior.command.executable().toString(),
runCommand({"set nto-executable " + rp.inferior.command.executable().path(),
CB(handleSetNtoExecutable)});
else
handleInferiorPrepared();