forked from qt-creator/qt-creator
Add toolchain environment for debugger autodetection.
Find MinGW debugger in toolchain path. Task-number: QTCREATORBUG-7732 Change-Id: Ia1e281669186d0296f7f5718ced37b69864017e7 Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
@@ -173,8 +173,9 @@ DebuggerKitInformation::DebuggerItem DebuggerKitInformation::autoDetectItem(cons
|
||||
}
|
||||
|
||||
// Check suggestions from the SDK.
|
||||
const Environment env = Environment::systemEnvironment();
|
||||
Environment env = Environment::systemEnvironment();
|
||||
if (tc) {
|
||||
tc->addToEnvironment(env); // Find MinGW gdb in toolchain environment.
|
||||
QString path = tc->suggestedDebugger().toString();
|
||||
if (!path.isEmpty()) {
|
||||
const QFileInfo fi(path);
|
||||
|
||||
Reference in New Issue
Block a user