forked from qt-creator/qt-creator
CMakePM: Fix bad "path" backtrace generation
CMake can generate backgraces with absolute paths, and the commit
246f33c20d
removed this support from Qt
Creator.
This commit fixes this issue with absolute paths.
Fixes: QTCREATORBUG-29914
Change-Id: Ib911e80aee1ff9f4a26435f7e693f7766551cc90
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -181,8 +181,7 @@ static QVector<FolderNode::LocationInfo> extractBacktraceInformation(
|
||||
|
||||
const size_t fileIndex = static_cast<size_t>(btNode.file);
|
||||
QTC_ASSERT(fileIndex < backtraces.files.size(), break);
|
||||
const FilePath path = sourceDir.pathAppended(backtraces.files[fileIndex]).absoluteFilePath();
|
||||
|
||||
const FilePath path = sourceDir.resolvePath(backtraces.files[fileIndex]);
|
||||
if (btNode.command < 0) {
|
||||
// No command, skip: The file itself is already covered:-)
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user