summaryrefslogtreecommitdiff
path: root/src/plugins/qt4projectmanager/qt-s60
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-06-01 16:16:28 +0200
committerhjk <qthjk@ovi.com>2011-06-01 17:14:18 +0200
commit958a53dd313f57a00e676d8a226d7712d0d6f7f3 (patch)
tree59c34c823ce63ea4310ee7f12bdc76b15410d7fb /src/plugins/qt4projectmanager/qt-s60
parent75675c88ae94ac83678cc84728ea3c6643e32706 (diff)
downloadqt-creator-958a53dd313f57a00e676d8a226d7712d0d6f7f3.tar.gz
Debugger: Add project directory / file information also for S60/Maemo
The project directory / list of files are used to map remote to local files for QML debugging. Change-Id: I5aa1c4ea495d457e7af05bafcfead9c434231758 Reviewed-on: http://codereview.qt.nokia.com/311 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/qt4projectmanager/qt-s60')
-rw-r--r--src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp b/src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp
index 6617fc7fb8..d40689d9ea 100644
--- a/src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp
+++ b/src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp
@@ -475,6 +475,14 @@ static Debugger::DebuggerStartParameters s60DebuggerStartParams(const S60DeviceR
Debugger::DebuggerStartParameters::SymbianDebugClientTrk:
Debugger::DebuggerStartParameters::SymbianDebugClientCoda;
+ if (const ProjectExplorer::Project *project = rc->target()->project()) {
+ sp.projectSourceDirectory = project->projectDirectory();
+ if (const ProjectExplorer::BuildConfiguration *buildConfig = rc->target()->activeBuildConfiguration()) {
+ sp.projectBuildDirectory = buildConfig->buildDirectory();
+ }
+ sp.projectSourceFiles = project->files(Project::ExcludeGeneratedFiles);
+ }
+
QTC_ASSERT(sp.executableUid, return sp);
// Prefer the '*.sym' file over the '.exe', which should exist at the same