Commit 282e5ec0 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by hjk

Add toolchain environment for debugger autodetection.

Find MinGW debugger in toolchain path.

Task-number: QTCREATORBUG-7732
Change-Id: Ia1e281669186d0296f7f5718ced37b69864017e7
Reviewed-by: default avatarhjk <qthjk@ovi.com>
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@digia.com>
parent 2a497de2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment