Commit 89e66476 authored by Peifeng Yu's avatar Peifeng Yu
Browse files

Fix LldbVariable doesn't handle empty changelist

parent 0db0a0ba
......@@ -49,7 +49,8 @@ void LldbVariable::handleRawUpdate(const ResultRecord& r)
{
qCDebug(DEBUGGERLLDB) << "handleRawUpdate for variable" << varobj();
const Value& changelist = r["changelist"];
Q_ASSERT_X(changelist.size() == 1, "LldbVariable::handleRawUpdate",
Q_ASSERT_X(changelist.size() <= 1, "LldbVariable::handleRawUpdate",
"should only be used with one variable VarUpdate");
handleUpdate(changelist[0]);
if (changelist.size() == 1)
handleUpdate(changelist[0]);
}
......@@ -1060,7 +1060,6 @@ void LldbTest::testVariablesLocals()
void LldbTest::testVariablesLocalsStruct()
{
QSKIP("TODO");
TestDebugSession *session = new TestDebugSession;
session->variableController()->setAutoUpdate(KDevelop::IVariableController::UpdateLocals);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment