Changeset View
Changeset View
Standalone View
Standalone View
debuggers/common/miframestackmodel.cpp
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | 113 | { | |||
---|---|---|---|---|---|
115 | int first = stack[0]["level"].toInt(); | 115 | int first = stack[0]["level"].toInt(); | ||
116 | QList<KDevelop::FrameStackModel::FrameItem> frames; | 116 | QList<KDevelop::FrameStackModel::FrameItem> frames; | ||
117 | for (int i = 0; i< stack.size(); ++i) { | 117 | for (int i = 0; i< stack.size(); ++i) { | ||
118 | const Value& frame = stack[i]; | 118 | const Value& frame = stack[i]; | ||
119 | KDevelop::FrameStackModel::FrameItem f; | 119 | KDevelop::FrameStackModel::FrameItem f; | ||
120 | f.nr = frame["level"].toInt(); | 120 | f.nr = frame["level"].toInt(); | ||
121 | f.name = getFunctionOrAddress(frame); | 121 | f.name = getFunctionOrAddress(frame); | ||
122 | QPair<QString, int> loc = getSource(frame); | 122 | QPair<QString, int> loc = getSource(frame); | ||
123 | f.file = QUrl::fromLocalFile(loc.first); | 123 | f.file = QUrl::fromLocalFile(loc.first).adjusted(QUrl::NormalizePathSegments); | ||
124 | f.line = loc.second; | 124 | f.line = loc.second; | ||
125 | frames << f; | 125 | frames << f; | ||
126 | } | 126 | } | ||
127 | bool hasMore = false; | 127 | bool hasMore = false; | ||
128 | if (!frames.isEmpty()) { | 128 | if (!frames.isEmpty()) { | ||
129 | if (frames.last().nr == m_to+1) { | 129 | if (frames.last().nr == m_to+1) { | ||
130 | frames.takeLast(); | 130 | frames.takeLast(); | ||
131 | hasMore = true; | 131 | hasMore = true; | ||
Show All 24 Lines |