diff options
author | Daniel Teske <daniel.teske@digia.com> | 2013-10-23 13:24:36 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2013-10-23 13:41:12 +0200 |
commit | 7d42f743380c122baec91a3bcdd5420fef04a23e (patch) | |
tree | 23769bbe829a947ab1d6f5f07df8165b91154d8f /src | |
parent | c76e4e42340573da24401ba5f7afdabfcea86725 (diff) | |
download | qt-creator-7d42f743380c122baec91a3bcdd5420fef04a23e.tar.gz |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/android/androidconfigurations.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/android/androidconfigurations.cpp b/src/plugins/android/androidconfigurations.cpp index 4b6df3fd5e..80d1c9451a 100644 --- a/src/plugins/android/androidconfigurations.cpp +++ b/src/plugins/android/androidconfigurations.cpp @@ -830,6 +830,18 @@ void AndroidConfigurations::updateAutomaticKitList() if (k->isSdkProvided()) 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; } |