| 28 | } |
| 29 | |
| 30 | QPair<QString, int> getSource(const Value &frame) |
| 31 | { |
| 32 | QPair<QString, int> ret(QString(), -1); |
| 33 | if (frame.hasField(QStringLiteral("fullname"))) |
| 34 | ret=qMakePair(frame[QStringLiteral("fullname")].literal(), frame[QStringLiteral("line")].toInt()-1); |
| 35 | else if (frame.hasField(QStringLiteral("file"))) |
| 36 | ret=qMakePair(frame[QStringLiteral("file")].literal(), frame[QStringLiteral("line")].toInt()-1); |
| 37 | else if (frame.hasField(QStringLiteral("from"))) |
| 38 | ret.first=frame[QStringLiteral("from")].literal(); |
| 39 | |
| 40 | return ret; |
| 41 | } |
| 42 | |
| 43 | MIFrameStackModel::MIFrameStackModel(MIDebugSession * session) |
| 44 | : FrameStackModel(session) |