PR mi/10586
authorKeith Seitz <keiths@redhat.com>
Thu, 12 Jan 2012 22:51:10 +0000 (22:51 +0000)
committerKeith Seitz <keiths@redhat.com>
Thu, 12 Jan 2012 22:51:10 +0000 (22:51 +0000)
commit85254831c06bb38fb7d974d3b29e63f688923485
tree1dcd5e703c634e7a0371735d67367e315a42e777
parent3848a17fe5074ad88310b9cd52dba70aba076c39
PR mi/10586
* varobj.c (ANONYMOUS_STRUCT_NAME): Define.
(ANONYMOUS_UNION_NAME): Define.
(is_path_expr_parent): New function.
(get_path_expr_parent): New function.
(is_anonymous_child): New function.
(create_child_with_value): If the child is anonymous and without
a name, assign an object name to it.
(c_describe_child): Use get_path_expr_parent to determine
the parent expression.
If there field represents an anonymous struct or union and
has no name, set an appropriate display name and expression.
(cplus_describe_child): Likewise.
gdb/ChangeLog
gdb/varobj.c