MCPcopy Create free account
hub / github.com/KDE/kdevelop / setCurrentPosition

Method setCurrentPosition

kdevplatform/debugger/interfaces/idebugsession.cpp:105–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void 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
123QUrl IDebugSession::currentUrl() const
124{

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected