diff options
author | David Kaspar <dkaspar@blackberry.com> | 2013-10-15 16:17:37 +0200 |
---|---|---|
committer | David Kaspar <dkaspar@blackberry.com> | 2013-10-15 16:29:40 +0200 |
commit | 94b869557540fefb932dcd60cdc4ac8fd80cfcb5 (patch) | |
tree | df5f2722a2023273a88b1dcc774cf97e75351846 /src/plugins/qnx/blackberryconfiguration.h | |
parent | 2b532c73ee96314c4af5d7ff0ecd4c31c6f81730 (diff) | |
download | qt-creator-94b869557540fefb932dcd60cdc4ac8fd80cfcb5.tar.gz |
Qnx: Fixing debugging on simulator to use correct debug symbols
BlackBerryConfiguration class has been rewritten to generate kit,
qtversion, toolchain and debugger for each available
<QtVersion,Architecture> pair.
This allows to use proper debug symbols i.e. target/qnx6/x86 for Simulator.
All kits, qtversions, toolchains and debuggers are claimed to be
autodetected.
Note it still requires to have matching version of the BB NDK Target and
simulator/device OS Image for proper debugging.
Task-number: QTCREATORBUG-10271
Change-Id: I522b761e7ad5c24736a8d19e0a1c8ea8c9fe9664
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Reviewed-by: David Kaspar <dkaspar@blackberry.com>
Diffstat (limited to 'src/plugins/qnx/blackberryconfiguration.h')
-rw-r--r-- | src/plugins/qnx/blackberryconfiguration.h | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/src/plugins/qnx/blackberryconfiguration.h b/src/plugins/qnx/blackberryconfiguration.h index 32961201ce..a67a0dfd45 100644 --- a/src/plugins/qnx/blackberryconfiguration.h +++ b/src/plugins/qnx/blackberryconfiguration.h @@ -1,8 +1,8 @@ /************************************************************************** ** -** Copyright (C) 2011 - 2013 Research In Motion +** Copyright (C) 2011,2012,2013 BlackBerry Limited. All rights reserved. ** -** Contact: Research In Motion (blackberry-qt@qnx.com) +** Contact: BlackBerry Limited (qt@blackberry.com) ** Contact: KDAB (info@kdab.com) ** ** This file is part of Qt Creator. @@ -37,17 +37,21 @@ #include <utils/environment.h> #include <utils/fileutils.h> -#include <qtsupport/baseqtversion.h> - #include <projectexplorer/kit.h> #include <projectexplorer/gcctoolchain.h> #include <QObject> #include <QCoreApplication> +namespace QtSupport { +class BaseQtVersion; +} + namespace Qnx { namespace Internal { +class QnxAbstractQtVersion; + class BlackBerryConfiguration { Q_DECLARE_TR_FUNCTIONS(Qnx::Internal::BlackBerryConfiguration) @@ -78,17 +82,19 @@ private: Utils::FileName m_qmake4BinaryFile; Utils::FileName m_qmake5BinaryFile; Utils::FileName m_gccCompiler; - Utils::FileName m_deviceDebuger; - Utils::FileName m_simulatorDebuger; + Utils::FileName m_deviceDebugger; + Utils::FileName m_simulatorDebugger; Utils::FileName m_sysRoot; QMultiMap<QString, QString> m_qnxEnv; - void setupConfigurationPerQtVersion(const Utils::FileName &qmakePath, ProjectExplorer::GccToolChain* tc); - QtSupport::BaseQtVersion* createQtVersion(const Utils::FileName &qmakePath); - ProjectExplorer::GccToolChain* createGccToolChain(); - ProjectExplorer::Kit* createKit(QnxArchitecture arch, QtSupport::BaseQtVersion* qtVersion, ProjectExplorer::GccToolChain* tc); - void setSticky(ProjectExplorer::Kit* kit); - + void createConfigurationPerQtVersion( + const Utils::FileName &qmakePath, Qnx::QnxArchitecture arch); + QnxAbstractQtVersion* createQtVersion( + const Utils::FileName &qmakePath, Qnx::QnxArchitecture arch); + ProjectExplorer::GccToolChain* createGccToolChain(QnxAbstractQtVersion *version); + ProjectExplorer::Kit* createKit( + QnxAbstractQtVersion* version, ProjectExplorer::ToolChain* toolChain); + QList<QtSupport::BaseQtVersion *> findRegisteredQtVersions() const; }; } // namespace Internal |