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:
Friedemann Kleint
2012-09-27 14:03:02 +02:00
committed by hjk
parent 2a497de23e
commit 282e5ec032

View File

@@ -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);