From d76ba6c99e8f93f37da1c58550aa1f23047278e1 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 2 Sep 2015 14:11:43 +0200 Subject: [PATCH] Debugger: Fix stepping into other files with PdbEngine Change-Id: Ia6f9ec5ffdfd1239c10252a74cc30f57d9f63de1 Reviewed-by: Christian Stenger --- src/plugins/debugger/pdb/pdbengine.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/plugins/debugger/pdb/pdbengine.cpp b/src/plugins/debugger/pdb/pdbengine.cpp index 2e095387240..f6a24357370 100644 --- a/src/plugins/debugger/pdb/pdbengine.cpp +++ b/src/plugins/debugger/pdb/pdbengine.cpp @@ -353,6 +353,7 @@ void PdbEngine::refreshLocation(const GdbMi &reportedLocation) StackFrame frame; frame.file = reportedLocation["file"].toUtf8(); frame.line = reportedLocation["line"].toInt(); + frame.usable = QFileInfo(frame.file).isReadable(); if (state() == InferiorRunOk) { showMessage(QString::fromLatin1("STOPPED AT: %1:%2").arg(frame.file).arg(frame.line)); gotoLocation(frame); @@ -545,12 +546,6 @@ void PdbEngine::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(runParameters()); - } frames.append(frame); } bool canExpand = stack["hasmore"].toInt();