Debugger: Re-organize communication with LLDB

Change-Id: I2916a2e4a180506f01dda237fd356e9a35119117
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-04-30 10:46:48 +02:00
parent 3177c8535a
commit 8d4289bb9c
5 changed files with 773 additions and 518 deletions

View File

@@ -599,13 +599,12 @@ void DebuggerEngine::gotoLocation(const Location &loc)
if (editors.isEmpty()) {
editor = EditorManager::openEditor(file, Core::Id(),
EditorManager::IgnoreNavigationHistory);
if (editor) {
editors.append(editor);
editor->setProperty(Constants::OPENED_BY_DEBUGGER, true);
}
QTC_ASSERT(editor, return); // Unreadable file?
editor->setProperty(Constants::OPENED_BY_DEBUGGER, true);
} else {
editor = editors.back();
}
ITextEditor *texteditor = qobject_cast<ITextEditor *>(editor);
if (texteditor)
texteditor->gotoLine(line, 0);