From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12950 invoked by alias); 10 Aug 2010 07:44:13 -0000 Received: (qmail 12938 invoked by uid 22791); 10 Aug 2010 07:44:11 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD 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, 10 Aug 2010 07:44:06 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7A7i5aq006041 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 10 Aug 2010 03:44:05 -0400 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7A7i3Ox006903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 10 Aug 2010 03:44:04 -0400 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o7A7i2PE019580; Tue, 10 Aug 2010 09:44:02 +0200 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o7A7i2uG019579; Tue, 10 Aug 2010 09:44:02 +0200 Date: Tue, 10 Aug 2010 07:44:00 -0000 From: Jan Kratochvil To: sami wagiaalla Cc: gdb-patches@sourceware.org, Tom Tromey Subject: Regression gdb.cp/temargs.exp: test value of P in inner_m [Re: [patch] Defer symbol addition until construction is complete] Message-ID: <20100810074402.GA19162@host1.dyn.jankratochvil.net> References: <4C446F09.50107@redhat.com> <4C604B22.4060904@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C604B22.4060904@redhat.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-IsSubscribed: yes 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: 2010-08/txt/msg00119.txt.bz2 On Mon, 09 Aug 2010 20:38:26 +0200, sami wagiaalla wrote: > Complete symbol construction before adding to pending list. > > 2010-08-09 Sami Wagiaalla > > * dwarf2read.c (new_symbol): Add symbol to variable list at end of > function after symbol construction is complete. > Do the same for template symbol addition to template_symbols list. checked-in as: http://sourceware.org/ml/gdb-cvs/2010-08/msg00040.html 3b26cb4b133031280fa022e2a06e58f333ed5e8d > Is this cool ? This patch has a cold regression. :-) -PASS: gdb.cp/temargs.exp: test value of P in inner_m +FAIL: gdb.cp/temargs.exp: test value of P in inner_m : print P == &a_global $4 = true (gdb) PASS: gdb.cp/temargs.exp: test value of P in inner_m -> print P == &a_global No symbol "P" in current context. (gdb) FAIL: gdb.cp/temargs.exp: test value of P in inner_m It affects {x86_64,x86_64-m32,i686}-fedora14snapshot-linux-gnu. It does not affect {x86_64,x86_64-m32,i686}-fedora13-linux-gnu. PASS->FAIL gcc-4.5.0-3.fc14.{x86_64,i686} XFAIL gcc-4.4.4-10.fc13.{x86_64,i686} PASS->FAIL GNU C++ 4.6.0 20100810 (experimental) PASS->FAIL GNU C++ 4.5.2 20100810 (prerelease) XFAIL GNU C++ 4.4.5 20100810 (prerelease) XFAIL is: print P == &a_global No symbol "P" in current context. (gdb) XFAIL: gdb.cp/temargs.exp: test value of P in inner_m Thanks, Jan