Debugger: normalize stack frame file paths from cdb

Task-number: QTCREATORBUG-23339
Change-Id: If467b6760c3d4c6fdfd74bb0221d948b7f732b18
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2020-01-02 13:37:03 +01:00
parent 9c340a1758
commit 2863772934

View File

@@ -2575,7 +2575,7 @@ static StackFrames parseFrames(const GdbMi &gdbmi, bool *incomplete = nullptr)
frame.level = QString::number(i); frame.level = QString::number(i);
const GdbMi fullName = frameMi["fullname"]; const GdbMi fullName = frameMi["fullname"];
if (fullName.isValid()) { if (fullName.isValid()) {
frame.file = fullName.data(); frame.file = Utils::FileUtils::normalizePathName(fullName.data());
frame.line = frameMi["line"].data().toInt(); frame.line = frameMi["line"].data().toInt();
frame.usable = false; // To be decided after source path mapping. frame.usable = false; // To be decided after source path mapping.
const GdbMi languageMi = frameMi["language"]; const GdbMi languageMi = frameMi["language"];