From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5521 invoked by alias); 20 Dec 2011 16:00:49 -0000 Received: (qmail 5508 invoked by uid 22791); 20 Dec 2011 16:00:47 -0000 X-SWARE-Spam-Status: No, hits=-5.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Dec 2011 16:00:33 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pBKG0WOT028801 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 20 Dec 2011 11:00:33 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pBKG0WCn007786; Tue, 20 Dec 2011 11:00:32 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id pBKG0VRN007803; Tue, 20 Dec 2011 11:00:31 -0500 From: Tom Tromey To: Keith Seitz Cc: "gdb-patches\@sourceware.org ml" Subject: Re: [RFA] mi/10586 References: <4EBD93D9.2020006@redhat.com> <4EC157F6.1030503@redhat.com> <4EC16BD8.90309@redhat.com> <4EC29CF7.40204@redhat.com> <4ED95103.8030204@redhat.com> <4EEBD762.1010201@redhat.com> Date: Tue, 20 Dec 2011 16:03:00 -0000 In-Reply-To: <4EEBD762.1010201@redhat.com> (Keith Seitz's message of "Fri, 16 Dec 2011 15:42:26 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00678.txt.bz2 >>>>> "Keith" == Keith Seitz writes: Keith> ChangeLog Keith> 2011-12-16 Keith Seitz 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 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