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

Method programStopped

plugins/debuggercommon/mivariablecontroller.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void MIVariableController::programStopped(const AsyncRecord& r)
49{
50 if (debugSession()->debuggerStateIsOn(s_shuttingDown)) return;
51
52 static const auto returnValueVariableField = QStringLiteral("gdb-result-var");
53 if (r.hasField(returnValueVariableField)) {
54 variableCollection()->watches()->addFinishResult(r[returnValueVariableField].literal());
55 } else {
56 variableCollection()->watches()->removeFinishResult();
57 }
58}
59
60void MIVariableController::update()
61{

Callers

nothing calls this directly

Calls 6

variableCollectionFunction · 0.85
debuggerStateIsOnMethod · 0.80
hasFieldMethod · 0.80
addFinishResultMethod · 0.80
literalMethod · 0.80
removeFinishResultMethod · 0.80

Tested by

no test coverage detected