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

Function canStopOnChange

kdevplatform/debugger/variable/variablewidget.cpp:73–78  ·  view source on GitHub ↗

* @return whether a watchpoint set on a given variable can possibly be hit */

Source from the content-addressed store, hash-verified

71 * @return whether a watchpoint set on a given variable can possibly be hit
72 */
73[[nodiscard]] bool canStopOnChange(const Variable& variable)
74{
75 // Each GDB or LLDB return value variable has its own unique numbered name, e.g. $1.
76 // A watchpoint on such a variable cannot be hit because the value of the variable never changes.
77 return &variable != variableCollection()->watches()->returnValueVariable();
78}
79
80} // unnamed namespace
81

Callers 2

contextMenuEventMethod · 0.85
stopOnChangeMethod · 0.85

Calls 2

variableCollectionFunction · 0.85
returnValueVariableMethod · 0.80

Tested by

no test coverage detected