~ubuntu-sdk-team/qtcreator-plugin-ubuntu/trunk

« back to all changes in this revision

Viewing changes to src/ubuntu/device/container/ubuntulocalrunconfiguration.cpp

  • Committer: Benjamin Zeller
  • Date: 2016-07-25 12:33:28 UTC
  • mfrom: (457.1.9 ubuntu)
  • Revision ID: benjamin.zeller@canonical.com-20160725123328-0mr53yvyp50qpc0p
- Add some descriptive text when there is no framework detected for a device
- Mark all virtuals that override with the override keyword
- Fix local debugging by passing the directory where the ld loader is located

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <ubuntu/ubuntucmakecache.h>
25
25
#include <ubuntu/ubuntuprojecthelper.h>
26
26
#include <ubuntu/ubuntuclicktool.h>
 
27
#include <ubuntu/clicktoolchain.h>
27
28
 
28
29
#include <qtsupport/baseqtversion.h>
29
30
#include <qtsupport/qtkitinformation.h>
621
622
QStringList UbuntuLocalRunConfiguration::soLibSearchPaths() const
622
623
{
623
624
    QStringList paths;
 
625
 
 
626
    //lets tell GDB explicitely WHERE to look for debug syms
 
627
    //otherwise it might try to resolve some symlinks that are broken from the hosts point of view
 
628
    ProjectExplorer::ToolChain *tc = ProjectExplorer::ToolChainKitInformation::toolChain(target()->kit());
 
629
    ClickToolChain *uTc = nullptr;
 
630
 
 
631
    if (tc && tc->type() == QLatin1String(Constants::UBUNTU_CLICK_TOOLCHAIN_ID))
 
632
        uTc = static_cast<ClickToolChain *>(tc);
 
633
 
 
634
    if (uTc) {
 
635
        paths << QString::fromLatin1("%1/lib/%2")
 
636
                 .arg(UbuntuClickTool::targetBasePath(uTc->clickTarget()))
 
637
                 .arg(uTc->gnutriplet());
 
638
    }
 
639
 
624
640
    CMakeProjectManager::CMakeProject *cmakeProj
625
641
            = qobject_cast<CMakeProjectManager::CMakeProject *>(target()->project());
626
642