| 186 | |
| 187 | |
| 188 | void MIVariableController::addWatch(KDevelop::Variable* variable) |
| 189 | { |
| 190 | // FIXME: should add async 'get full expression' method |
| 191 | // to MIVariable, not poke at varobj. In that case, |
| 192 | // we will be able to make addWatch a generic method, not |
| 193 | // gdb-specific one. |
| 194 | if (auto* gv = qobject_cast<MIVariable*>(variable)) { |
| 195 | debugSession()->addCommand(VarInfoPathExpression, |
| 196 | gv->varobj(), |
| 197 | this, &MIVariableController::addWatch); |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | void MIVariableController::addWatchpoint(KDevelop::Variable* variable) |
| 202 | { |
nothing calls this directly
no test coverage detected