Commit e6be1526 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

make fullname parsing on windows less optimistic

seems like gdb 6.8 isn't any better than 6.4 wrt file name
normalization.

Reviewed-By: hjk
parent c17dff42
......@@ -1319,16 +1319,12 @@ QString GdbEngine::fullName(const QString &fileName)
QString GdbEngine::cleanupFullName(const QString &fileName)
{
QTC_ASSERT(!fileName.isEmpty(), return QString())
if (m_gdbVersion < 60800) {
// The symbian gdb 6.4 seems to deliver "fullnames" which
// a) have no drive letter and b) are not normalized.
QFileInfo fi(fileName);
if (!fi.isReadable())
return QString();
return QDir::cleanPath(fi.absoluteFilePath());
} else {
return fileName;
}
// Gdb on windows often delivers "fullnames" which
// a) have no drive letter and b) are not normalized.
QFileInfo fi(fileName);
if (!fi.isReadable())
return QString();
return QDir::cleanPath(fi.absoluteFilePath());
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment