From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12065 invoked by alias); 1 Jan 2010 18:45:25 -0000 Received: (qmail 12053 invoked by uid 22791); 1 Jan 2010 18:45:24 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,FH_DATE_PAST_20XX,SPF_HELO_PASS,SPF_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; Fri, 01 Jan 2010 18:45:18 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o01IjAti019600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 1 Jan 2010 13:45:10 -0500 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o01Ij7rR003426 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 1 Jan 2010 13:45:09 -0500 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id o01Ij7bK019921; Fri, 1 Jan 2010 19:45:07 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id o01Ij5Pj019919; Fri, 1 Jan 2010 19:45:05 +0100 Date: Fri, 01 Jan 2010 18:45:00 -0000 From: Jan Kratochvil To: Vladimir Prus Cc: gdb@sourceware.org Subject: Regression: field type preservation: 7.0 -> 7.0.1+HEAD Message-ID: <20100101184505.GA18391@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00017.txt.bz2 Hi, there is now: -PASS: gdb.mi/mi-var-child.exp: get children of struct_declarations.s2.u2.u1s1 +FAIL: gdb.mi/mi-var-child.exp: get children of struct_declarations.s2.u2.u1s1 -PASS: gdb.mi/mi2-var-child.exp: get children of struct_declarations.s2.u2.u1s1 +FAIL: gdb.mi/mi2-var-child.exp: get children of struct_declarations.s2.u2.u1s1 -PASS: gdb.python/py-mi.exp: examine container children=0, no pretty-printing +FAIL: gdb.python/py-mi.exp: examine container children=0, no pretty-printing due to: Re: RFA: unbreak typedefed bitfield http://sourceware.org/ml/gdb-patches/2009-12/msg00295.html commit fc85da4ee2a7c32afc53b1b334a4f84e2e9bd84e http://sourceware.org/ml/gdb-cvs/2009-12/msg00100.html Author: Vladimir Prus Date: Mon Dec 21 09:50:26 2009 +0000 PR gdb/10884 * value.c (value_primitive_field): Call check_typedef on the type. which has landed on gdb_7_0-branch for 7.0.1: http://sourceware.org/ml/gdb-patches/2009-12/msg00301.html Author: Joel Brobecker commit 259702e4c806baf8ba483484ceec8feb94a39a64 http://sourceware.org/ml/gdb-cvs/2009-12/msg00104.html commit f3f5ad7561d2206b09ef30df979ef58dd014543b http://sourceware.org/ml/gdb-cvs/2009-12/msg00103.html PASS: ^done,numchild="4",children=[child={name="struct_declarations.s2.u2.u1s1.d",exp="d",numchild="0",type="int",thread-id="1"},child={name="struct_declarations.s2.u2.u1s1.e",exp="e",numchild="10",type="char [10]",thread-id="1"},child={name="struct_declarations.s2.u2.u1s1.func",exp="func",numchild="0",type="int *(*)(void)",thread-id="1"},child={name="struct_declarations.s2.u2.u1s1.foo",exp="foo",numchild="0",type="efoo",thread-id="1"}],has_more="0" FAIL: ^done,numchild="4",children=[child={name="struct_declarations.s2.u2.u1s1.d",exp="d",numchild="0",type="int",thread-id="1"},child={name="struct_declarations.s2.u2.u1s1.e",exp="e",numchild="10",type="char [10]",thread-id="1"},child={name="struct_declarations.s2.u2.u1s1.func",exp="func",numchild="0",type="int *(*)(void)",thread-id="1"},child={name="struct_declarations.s2.u2.u1s1.foo",exp="foo",numchild="0",type="enum foo",thread-id="1"}],has_more="0" wdiff:^done,numchild="4",children=[child={name="struct_declarations.s2.u2.u1s1.d",exp="d",numchild="0",type="int",thread-id="1"},child={name="struct_declarations.s2.u2.u1s1.e",exp="e",numchild="10",type="char [10]",thread-id="1"},child={name="struct_declarations.s2.u2.u1s1.func",exp="func",numchild="0",type="int *(*)(void)",thread-id="1"},child={name="struct_declarations.s2.u2.u1s1.foo",exp="foo",numchild="0",type=[-"efoo"-]{+"enum foo"+},thread-id="1"}],has_more="0" typedef enum foo efoo; struct { int d; char e[10]; int *(*func) (void); efoo foo; } u1s1; # Test: c_variable-4.61 # Desc: children of struct_declarations.s2.u2.u1s1 mi_list_varobj_children struct_declarations.s2.u2.u1s1 { {struct_declarations.s2.u2.u1s1.d d 0 int} {struct_declarations.s2.u2.u1s1.e e 10 {char \[10\]}} {struct_declarations.s2.u2.u1s1.func func 0 {int \*\(\*\)\((void)?\)}} {struct_declarations.s2.u2.u1s1.foo foo 0 efoo} } "get children of struct_declarations.s2.u2.u1s1" I find that the type of the field should be really reported before check_typedef and therefore the patch should be reverted. Regards, Jan