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

Method setVarobj

plugins/debuggercommon/mivariable.cpp:81–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void MIVariable::setVarobj(const QString& v)
82{
83 if (!m_debugSession) {
84 qCWarning(DEBUGGERCOMMON) << "MIVariable::setVarobj called when its session died";
85 return;
86 }
87 if (!m_varobj.isEmpty()) {
88 // this should not happen
89 // but apparently it does when attachMaybe is called a second time before
90 // the first -var-create call returned
91 m_debugSession->variableMapping().remove(m_varobj);
92 }
93 m_varobj = v;
94 m_debugSession->variableMapping()[m_varobj] = this;
95}
96
97
98static int nextId = 0;

Callers 2

createChildMethod · 0.80
handleMethod · 0.80

Calls 2

isEmptyMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected