Debugger: Fix autodetection

Fixes: QTCREATORBUG-26978
Change-Id: I32585251d47729f7fde9ee6e707d9e9cfed4c1a7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2022-02-03 12:08:36 +01:00
parent f5b946abbe
commit 1e34d6ee22

View File

@@ -32,6 +32,7 @@
#include <extensionsystem/pluginmanager.h> #include <extensionsystem/pluginmanager.h>
#include <projectexplorer/devicesupport/devicemanager.h>
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/projectexplorericons.h> #include <projectexplorer/projectexplorericons.h>
@@ -957,8 +958,10 @@ void DebuggerItemManagerPrivate::restoreDebuggers()
readDebuggers(userSettingsFileName(), false); readDebuggers(userSettingsFileName(), false);
// Auto detect current. // Auto detect current.
IDevice::ConstPtr desktop = DeviceManager::defaultDesktopDevice();
QTC_ASSERT(desktop, return);
autoDetectGdbOrLldbDebuggers(desktop->systemEnvironment().path(), {});
autoDetectCdbDebuggers(); autoDetectCdbDebuggers();
autoDetectGdbOrLldbDebuggers({}, {});
autoDetectUvscDebuggers(); autoDetectUvscDebuggers();
} }