Debugger: Have a generic "GDB in PATH on Build Device" item

This is only checked at run-time, but allows smoother creation of
kits for standard setups as the (possibly remote) full path is
not needed.

Remove the DebuggerKitAspect::fixup() implementation. Too much magic
by now, and worst thing that could happen is a non-matching debugger
that will clearly bark when used.

Change-Id: If2414610d479a5b93c3e6227b8736ddc61f70635
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-03-28 07:40:26 +02:00
parent 5cfc52a92c
commit 463e47bbdd
4 changed files with 44 additions and 81 deletions

View File

@@ -339,7 +339,7 @@ Environment LinuxDevicePrivate::getEnvironment()
return m_environmentCache.value();
QtcProcess getEnvProc;
getEnvProc.setCommand({FilePath("env").onDevice(q->rootPath()), {}});
getEnvProc.setCommand({q->filePath("env"), {}});
getEnvProc.runBlocking();
const QString remoteOutput = getEnvProc.cleanedStdOut();