Debugger: Move QML stack access to DumperBase

... and make it work with LLDB.

Change-Id: Idaec029942dbcc726931781caff830173f7b126a
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
hjk
2015-02-04 17:21:55 +01:00
parent 18c83a61ff
commit a20a7d099b
4 changed files with 75 additions and 52 deletions

View File

@@ -1000,6 +1000,12 @@ void LldbEngine::refreshStack(const GdbMi &stack)
frame.usable = usable.data().toInt();
else
frame.usable = QFileInfo(frame.file).isReadable();
if (item["language"].data() == "js"
|| frame.file.endsWith(QLatin1String(".js"))
|| frame.file.endsWith(QLatin1String(".qml"))) {
frame.language = QmlLanguage;
frame.fixQmlFrame(startParameters());
}
frames.append(frame);
}
bool canExpand = stack["hasmore"].toInt();