Qnx: Search pdebug on the device again

The responsibility for creating "global" paths has shifted lately,
and the Qnx debug support forgotten to adapt.

Task-number: QTCREATORBUG-27798
Change-Id: I940502eb64303babbea3bfafe845a02542a0a6d5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tommi Mänttäri <tommi.manttari@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2022-07-07 12:59:02 +02:00
parent 57329c7cf9
commit 967136b07a

View File

@@ -37,6 +37,7 @@
#include <projectexplorer/devicesupport/deviceprocessesdialog.h>
#include <projectexplorer/devicesupport/deviceusedportsgatherer.h>
#include <projectexplorer/devicesupport/idevice.h>
#include <projectexplorer/kit.h>
#include <projectexplorer/kitchooser.h>
#include <projectexplorer/kitinformation.h>
@@ -106,7 +107,7 @@ public:
QStringList arguments;
if (portsGatherer->useGdbServer()) {
int pdebugPort = portsGatherer->gdbServer().port();
cmd.setExecutable(FilePath::fromString(QNX_DEBUG_EXECUTABLE));
cmd.setExecutable(device()->filePath(QNX_DEBUG_EXECUTABLE));
arguments.append(QString::number(pdebugPort));
}
if (portsGatherer->useQmlServer()) {