| 58 | } |
| 59 | |
| 60 | void MIVariableController::update() |
| 61 | { |
| 62 | qCDebug(DEBUGGERCOMMON) << "autoUpdate =" << autoUpdate(); |
| 63 | if (autoUpdate() & UpdateWatches) { |
| 64 | variableCollection()->watches()->reinstall(); |
| 65 | } |
| 66 | |
| 67 | if (autoUpdate() & UpdateLocals) { |
| 68 | updateLocals(); |
| 69 | } |
| 70 | |
| 71 | if ((autoUpdate() & UpdateLocals) || |
| 72 | ((autoUpdate() & UpdateWatches) && variableCollection()->watches()->childCount() > 0)) |
| 73 | { |
| 74 | debugSession()->addCommand(VarUpdate, QStringLiteral("--all-values *"), this, |
| 75 | &MIVariableController::handleVarUpdate); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | void MIVariableController::handleVarUpdate(const ResultRecord& r) |
| 80 | { |
nothing calls this directly
no test coverage detected