RemoteLinux: Use path on device for fallback gdbserver

This was using a gdbserver from the local system which appeared
to work with "local remote" test setups, but failed in real life.

Fixes: QTCREATORBUG-27752
Change-Id: I24c46dd737fc5396caeeedb55258e4edb465cbb0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2022-06-28 13:19:46 +02:00
parent 88651ecb3e
commit 551d458605

View File

@@ -1059,7 +1059,7 @@ DebugServerRunner::DebugServerRunner(RunControl *runControl, DebugServerPortsGat
} else {
cmd.setExecutable(runControl->device()->debugServerPath());
if (cmd.isEmpty())
cmd.setExecutable("gdbserver");
cmd.setExecutable(runControl->device()->filePath("gdbserver"));
args.clear();
if (cmd.executable().toString().contains("lldb-server")) {
args.append("platform");