lldb: Quick fix for weird behavior when opening locations from debugger

Paths passed to Qt Creator API must be cleaned. Make sure that the file
path that is opened from stack view and when stepping etc, is cleaned.

Task-number: QTCREATORBUG-10119
Change-Id: Iaac9b15e76cf8dff514889f201c4f65330145d16
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Eike Ziller
2013-10-17 17:25:05 +02:00
committed by hjk
parent 7d8546b8e5
commit 9aa52a2c7e

View File

@@ -66,6 +66,7 @@
#include <QDebug>
#include <QTimer>
#include <QFileInfo>
#include <QDir>
#include <QMessageBox>
@@ -534,7 +535,7 @@ void DebuggerEngine::gotoLocation(const Location &loc)
// return;
const QString file = loc.fileName();
const QString file = QDir::cleanPath(loc.fileName());
const int line = loc.lineNumber();
bool newEditor = false;
IEditor *editor = EditorManager::openEditor(file, Id(),