| 46 | } |
| 47 | |
| 48 | void 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 | |
| 60 | void MIVariableController::update() |
| 61 | { |
nothing calls this directly
no test coverage detected