| 79 | } |
| 80 | |
| 81 | void 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 | |
| 98 | static int nextId = 0; |
no test coverage detected