| 199 | } |
| 200 | |
| 201 | void MIVariableController::addWatchpoint(KDevelop::Variable* variable) |
| 202 | { |
| 203 | // FIXME: should add async 'get full expression' method |
| 204 | // to MIVariable, not poke at varobj. In that case, |
| 205 | // we will be able to make addWatchpoint a generic method, not |
| 206 | // gdb-specific one. |
| 207 | if (auto* gv = qobject_cast<MIVariable*>(variable)) { |
| 208 | debugSession()->addCommand(VarInfoPathExpression, |
| 209 | gv->varobj(), |
| 210 | this, &MIVariableController::addWatchpoint); |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | void MIVariableController::addWatch(const ResultRecord& r) |
| 215 | { |