MCPcopy Create free account
hub / github.com/KDAB/GammaRay / OnCallstackEntry

Method OnCallstackEntry

core/execution.cpp:277–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275 }
276
277 void OnCallstackEntry(CallstackEntryType eType, CallstackEntry &entry) override
278 {
279 if (eType == lastEntry || entry.offset == 0)
280 return;
281 if (m_skip > 0) {
282 --m_skip;
283 return;
284 }
285 if (m_maxDepth > 0 && m_frames->size() >= m_maxDepth)
286 return;
287
288 Execution::ResolvedFrame frame;
289 frame.name = entry.name;
290 if (frame.name.isEmpty())
291 frame.name = entry.moduleName;
292 if (frame.name.isEmpty())
293 frame.name = QString::number(entry.offset, 16);
294 frame.location.setUrl(QUrl::fromLocalFile(entry.lineFileName));
295 frame.location.setOneBasedLine(entry.lineNumber);
296 m_frames->push_back(frame);
297 }
298
299private:
300 QVector<Execution::ResolvedFrame> *m_frames;

Callers

nothing calls this directly

Calls 4

setOneBasedLineMethod · 0.80
sizeMethod · 0.45
isEmptyMethod · 0.45
setUrlMethod · 0.45

Tested by

no test coverage detected