| 20 | }; |
| 21 | |
| 22 | QDebug operator<<(QDebug debug, const PrintPosition& p) |
| 23 | { |
| 24 | const QDebugStateSaver saver(debug); |
| 25 | // IDebugSession::currentLine() is zero-based, so add 1 to print the conventional one-based line number. |
| 26 | debug.noquote().nospace() << p.url.toString(QUrl::PreferLocalFile) << ':' << p.line + 1 << ", addr: " << p.addr; |
| 27 | return debug; |
| 28 | } |
| 29 | } // unnamed namespace |
| 30 | |
| 31 | namespace KDevelop { |