LLDB-MI: -var-list-children with no children doesn't need a children value in the...
authorBruce Mitchener <bruce.mitchener@gmail.com>
Tue, 28 Apr 2015 10:03:55 +0000 (10:03 +0000)
committerBruce Mitchener <bruce.mitchener@gmail.com>
Tue, 28 Apr 2015 10:03:55 +0000 (10:03 +0000)
commit41ad9c412827ed897bf37ae62a2035317652fa57
tree4944d1506efaa0c1040235d759740d6909c63951
parentae518539246c4d985dce34ff8fae86b8c6be032d
LLDB-MI: -var-list-children with no children doesn't need a children value in the response.

Summary:
When using GDB with MI, if there aren't children for a variable,
it doesn't include a "children" value in the response. LLDB does
and sets it to "[]" while variables with children have an unquoted
list: children=[...].

This removes the children value entirely when there are no children
making this match GDB in behavior.

Test Plan: Ran tests on Mac OS X and they passed.

Reviewers: abidh, domipheus

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D9320

llvm-svn: 235974
lldb/test/tools/lldb-mi/variable/TestMiVar.py
lldb/tools/lldb-mi/MICmdCmdVar.cpp