forked from qt-creator/qt-creator
Debugger: Fix autodetection
Fixes: QTCREATORBUG-26978 Change-Id: I32585251d47729f7fde9ee6e707d9e9cfed4c1a7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
|
||||
#include <projectexplorer/devicesupport/devicemanager.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/projectexplorericons.h>
|
||||
|
||||
@@ -957,8 +958,10 @@ void DebuggerItemManagerPrivate::restoreDebuggers()
|
||||
readDebuggers(userSettingsFileName(), false);
|
||||
|
||||
// Auto detect current.
|
||||
IDevice::ConstPtr desktop = DeviceManager::defaultDesktopDevice();
|
||||
QTC_ASSERT(desktop, return);
|
||||
autoDetectGdbOrLldbDebuggers(desktop->systemEnvironment().path(), {});
|
||||
autoDetectCdbDebuggers();
|
||||
autoDetectGdbOrLldbDebuggers({}, {});
|
||||
autoDetectUvscDebuggers();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user