diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 31064710f4b..e372640cc60 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1703,11 +1703,10 @@ QString GdbEngine::cleanupFullName(const QString &fileName) { QString cleanFilePath = fileName; - const Abi abi = startParameters().toolChainAbi; - if (abi.os() == Abi::WindowsOS) { + // Gdb running on windows often delivers "fullnames" which + // (a) have no drive letter and (b) are not normalized. + if (Abi::hostAbi().os() == Abi::WindowsOS) { QTC_ASSERT(!fileName.isEmpty(), return QString()) - // Gdb on windows often delivers "fullnames" which - // (a) have no drive letter and (b) are not normalized. QFileInfo fi(fileName); if (fi.isReadable()) cleanFilePath = QDir::cleanPath(fi.absoluteFilePath());