OSDN Git Service

PR mi/10586
authorkseitz <kseitz>
Thu, 12 Jan 2012 22:51:08 +0000 (22:51 +0000)
committerkseitz <kseitz>
Thu, 12 Jan 2012 22:51:08 +0000 (22:51 +0000)
commit1ed2d3fb38141729854dcdfd78c7810a1e4a4525
treee19862af0478ca10a575c6933811dfe57480a7d8
parent93bed80162d24e45bcba7a71588d7f6bd0a9fcfa
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