This is an archive of the discontinued LLVM Phabricator instance.

LLDB-MI: -var-list-children with no children doesn't need a children value in the response.
ClosedPublic

Authored by brucem on Apr 28 2015, 2:58 AM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

brucem updated this revision to Diff 24533.Apr 28 2015, 2:58 AM
brucem retitled this revision from to LLDB-MI: -var-list-children with no children doesn't need a children value in the response..
brucem updated this object.
brucem edited the test plan for this revision. (Show Details)
brucem added reviewers: abidh, domipheus.
brucem added a subscriber: Unknown Object (MLST).
abidh accepted this revision.Apr 28 2015, 3:03 AM
abidh edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Apr 28 2015, 3:03 AM
This revision was automatically updated to reflect the committed changes.