forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -106,6 +106,14 @@ RunControl *MaemoDebugSupport::createDebugRunControl(RemoteLinuxRunConfiguration
|
||||
}
|
||||
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 =
|
||||
DebuggerPlugin::createDebugger(params, runConfig);
|
||||
bool useGdb = params.startMode == StartRemoteGdb
|
||||
|
||||
Reference in New Issue
Block a user