Skip to content
Snippets Groups Projects
Commit 958a53dd authored by Kai Koehne's avatar Kai Koehne Committed by hjk
Browse files

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: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 75675c88
No related branches found
No related tags found
No related merge requests found
...@@ -475,6 +475,14 @@ static Debugger::DebuggerStartParameters s60DebuggerStartParams(const S60DeviceR ...@@ -475,6 +475,14 @@ static Debugger::DebuggerStartParameters s60DebuggerStartParams(const S60DeviceR
Debugger::DebuggerStartParameters::SymbianDebugClientTrk: Debugger::DebuggerStartParameters::SymbianDebugClientTrk:
Debugger::DebuggerStartParameters::SymbianDebugClientCoda; 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); QTC_ASSERT(sp.executableUid, return sp);
// Prefer the '*.sym' file over the '.exe', which should exist at the same // Prefer the '*.sym' file over the '.exe', which should exist at the same
......
...@@ -106,6 +106,14 @@ RunControl *MaemoDebugSupport::createDebugRunControl(RemoteLinuxRunConfiguration ...@@ -106,6 +106,14 @@ RunControl *MaemoDebugSupport::createDebugRunControl(RemoteLinuxRunConfiguration
} }
params.displayName = runConfig->displayName(); params.displayName = runConfig->displayName();
if (const ProjectExplorer::Project *project = runConfig->target()->project()) {
params.projectSourceDirectory = project->projectDirectory();
if (const ProjectExplorer::BuildConfiguration *buildConfig = runConfig->target()->activeBuildConfiguration()) {
params.projectBuildDirectory = buildConfig->buildDirectory();
}
params.projectSourceFiles = project->files(Project::ExcludeGeneratedFiles);
}
DebuggerRunControl * const runControl = DebuggerRunControl * const runControl =
DebuggerPlugin::createDebugger(params, runConfig); DebuggerPlugin::createDebugger(params, runConfig);
bool useGdb = params.startMode == StartRemoteGdb bool useGdb = params.startMode == StartRemoteGdb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment