Debugger/GDB: Fix file names according to host-ABI

Task-number: QTCREATORBUG-4648
This commit is contained in:
Friedemann Kleint
2011-04-28 11:10:01 +02:00
parent ba14c46a5e
commit 5ee1ee0b9e

View File

@@ -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());