| 64 | } |
| 65 | |
| 66 | MIVariable::~MIVariable() |
| 67 | { |
| 68 | if (!m_varobj.isEmpty()) |
| 69 | { |
| 70 | // Delete only top-level variable objects. |
| 71 | if (topLevel()) { |
| 72 | if (sessionIsAlive()) { |
| 73 | m_debugSession->addCommand(VarDelete, QStringLiteral("\"%1\"").arg(m_varobj)); |
| 74 | } |
| 75 | } |
| 76 | if (m_debugSession) |
| 77 | m_debugSession->variableMapping().remove(m_varobj); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | void MIVariable::setVarobj(const QString& v) |
| 82 | { |
nothing calls this directly
no test coverage detected