Debugger: Fix use of external debug info for installer-based Qt

On Linux. Required installs are the gcc-built Qt libraries themselves,
the "Sources" and "Qt Debug Information Files" components.

Fixes: QTCREATORBUG-20693
Change-Id: I920efd641ce3ee4583741ea1db0bea18031adc51
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-09-24 13:57:16 +02:00
parent 1b751c2d47
commit ada0e43c93
2 changed files with 15 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ QStringList qtBuildPaths()
"c:/users/qt/work/qt",
"c:/Users/qt/work/install"};
} else {
return {};
return { "/home/qt/work/qt" };
}
}
@@ -450,7 +450,7 @@ DebuggerSourcePathMappingWidget::SourcePathMap
SourcePathMap rc = in;
for (const QString &buildPath : qtBuildPaths()) {
if (!rc.contains(buildPath)) // Do not overwrite user settings.
rc.insert(buildPath, qtInstallPath);
rc.insert(buildPath, qtInstallPath + "/../Src");
}
return rc;
}