From c05ad8b4461575a68eed7b1cffb6edd68ffa0ba5 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Wed, 24 Jan 2024 07:43:26 +0100 Subject: [PATCH] CMakePM: Fix bad "path" backtrace generation CMake can generate backgraces with absolute paths, and the commit 246f33c20d1f9589a891223c820d009212d8bb00 removed this support from Qt Creator. This commit fixes this issue with absolute paths. Fixes: QTCREATORBUG-29914 Change-Id: Ib911e80aee1ff9f4a26435f7e693f7766551cc90 Reviewed-by: Marcus Tillmanns Reviewed-by: --- src/plugins/cmakeprojectmanager/fileapidataextractor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp b/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp index 70e5900dfcb..7ad7cdd0c54 100644 --- a/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp +++ b/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp @@ -181,8 +181,7 @@ static QVector extractBacktraceInformation( const size_t fileIndex = static_cast(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;