[RFA] mi/10586
Tom Tromey
tromey@redhat.com
Tue Dec 20 16:03:00 GMT 2011
>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:
Keith> ChangeLog
Keith> 2011-12-16 Keith Seitz <keiths@redhat.com>
Keith> PR mi/10586
Keith> * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
Keith> (ANONYMOUS_UNION_NAME): Define.
Keith> (is_path_expr_parent): New function.
Keith> (get_path_expr_parent): New function.
Keith> (is_anonymous_child): New function.
Keith> (create_child_with_value): If the child is anonymous and without
Keith> a name, assign an object name to it.
Keith> (c_describe_child): Use get_path_expr_parent to determine
Keith> the parent expression.
Keith> If there field represents an anonymous struct or union and
Keith> has no name, set an appropriate display name and expression.
Keith> (cplus_describe_child): Likewise.
Keith> testsuite/ChangeLog
Keith> 2011-12-16 Keith Seitz <keiths@redhat.com>
Keith> PR mi/10586
Keith> * gdb.mi/var-cmd.c (struct anonymous): New structure.
Keith> (do_anonymous_type_tests): New function.
Keith> (main): Call do_anonymous_type_tests.
Keith> * gdb.mi/mi2-var-child.exp: Add anonymous type tests.
Keith> (verify_everything): New procedure.
Keith> * gdb.mi/mi-var-cp.cc (class A): New class.
Keith> (anonymous_structs_and_unions): New function.
Keith> (main): Call anonymous_structs_and_unions.
Keith> * gdb.mi/mi-var-cp.exp: Add anonymous type tests.
Keith> (verify_everything): New procedure.
Ok.
Thanks.
Tom
More information about the Gdb-patches
mailing list