| 103 | } |
| 104 | |
| 105 | void IDebugSession::setCurrentPosition(const QUrl& url, int line, const QString& addr) |
| 106 | { |
| 107 | Q_D(IDebugSession); |
| 108 | |
| 109 | qCDebug(DEBUGGER) << "setting current position to:" << PrintPosition{url, line, addr}; |
| 110 | |
| 111 | if (url.isEmpty() || !QFileInfo::exists(convertToLocalUrl(qMakePair(url,line)).first.path())) { |
| 112 | clearCurrentPosition(); |
| 113 | d->m_addr = addr; |
| 114 | emit showStepInDisassemble(addr); |
| 115 | } else { |
| 116 | d->m_url = url; |
| 117 | d->m_line = line; |
| 118 | d->m_addr = addr; |
| 119 | emit showStepInSource(url, line, addr); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | QUrl IDebugSession::currentUrl() const |
| 124 | { |