forked from qt-creator/qt-creator
Android: Reset debugger in existing kits
For users upgrading from a broken 3.0 beta installation Change-Id: Ieecf38f74879d1efacbfd775ab29eba9e17a4c43 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -830,6 +830,18 @@ void AndroidConfigurations::updateAutomaticKitList()
|
|||||||
if (k->isSdkProvided())
|
if (k->isSdkProvided())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// Update code for 3.0 beta, which shipped with a bug for the debugger settings
|
||||||
|
ProjectExplorer::ToolChain *tc =ToolChainKitInformation::toolChain(k);
|
||||||
|
if (tc && Debugger::DebuggerKitInformation::debuggerCommand(k) != tc->suggestedDebugger()) {
|
||||||
|
Debugger::DebuggerItem debugger;
|
||||||
|
debugger.setCommand(tc->suggestedDebugger());
|
||||||
|
debugger.setEngineType(Debugger::GdbEngineType);
|
||||||
|
debugger.setDisplayName(tr("Android Debugger for %1").arg(tc->displayName()));
|
||||||
|
debugger.setAutoDetected(true);
|
||||||
|
debugger.setAbi(tc->targetAbi());
|
||||||
|
QVariant id = Debugger::DebuggerItemManager::registerDebugger(debugger);
|
||||||
|
Debugger::DebuggerKitInformation::setDebugger(k, id);
|
||||||
|
}
|
||||||
existingKits << k;
|
existingKits << k;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user