This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] mi/10586
- From: Tom Tromey <tromey at redhat dot com>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: "gdb-patches\ at sourceware dot org ml" <gdb-patches at sourceware dot org>
- Date: Tue, 20 Dec 2011 09:00:31 -0700
- Subject: Re: [RFA] mi/10586
- References: <4EBD93D9.2020006@redhat.com> <m3mxbyso6i.fsf@fleche.redhat.com> <4EC157F6.1030503@redhat.com> <m3mxbyr2ju.fsf@fleche.redhat.com> <4EC16BD8.90309@redhat.com> <m34ny6qwi9.fsf@fleche.redhat.com> <4EC29CF7.40204@redhat.com> <4ED95103.8030204@redhat.com> <m3ehw8b6rb.fsf@fleche.redhat.com> <4EEBD762.1010201@redhat.com>
>>>>> "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