From 6d2c9abb5d1e52f0238b87b49b5e6904fbf30599 Mon Sep 17 00:00:00 2001
From: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Date: Mon, 12 Apr 2010 08:38:28 +0200
Subject: [PATCH] Debugger/[gdb]: Remote debugging: Override toolchain
 gdb-detection

if an executable was specified.
---
 src/plugins/debugger/debuggerplugin.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index c455d4f89cf..769448f0038 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -1479,7 +1479,9 @@ void DebuggerPlugin::startRemoteApplication()
     sp->remoteChannel = dlg.remoteChannel();
     sp->remoteArchitecture = dlg.remoteArchitecture();
     sp->executable = dlg.localExecutable();
-    sp->debuggerCommand = dlg.debugger();
+    sp->debuggerCommand = dlg.debugger(); // Override toolchain-detection.
+    if (!sp->debuggerCommand.isEmpty())
+        sp->toolChainType = ProjectExplorer::ToolChain::INVALID;
     sp->startMode = StartRemote;
     if (dlg.useServerStartScript())
         sp->serverStartScript = dlg.serverStartScript();
-- 
GitLab