forked from qt-creator/qt-creator
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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user