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

Method addWatchpoint

plugins/debuggercommon/mivariablecontroller.cpp:201–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void 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
214void MIVariableController::addWatch(const ResultRecord& r)
215{

Calls 5

literalMethod · 0.80
debugControllerMethod · 0.80
addCommandMethod · 0.60
isEmptyMethod · 0.45
breakpointModelMethod · 0.45