Debugger/[gdb]: Remote debugging: Override toolchain gdb-detection

if an executable was specified.
This commit is contained in:
Friedemann Kleint
2010-04-12 08:38:28 +02:00
parent 9218e261b0
commit 6d2c9abb5d

View File

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