forked from qt-creator/qt-creator
Debugger: Fix stepping into other files with PdbEngine
Change-Id: Ia6f9ec5ffdfd1239c10252a74cc30f57d9f63de1 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user