From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22009 invoked by alias); 3 Feb 2010 05:30:53 -0000 Received: (qmail 22000 invoked by uid 22791); 3 Feb 2010 05:30:52 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,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; Wed, 03 Feb 2010 05:30:38 +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 o135Uat4030744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 3 Feb 2010 00:30:37 -0500 Received: from host0.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 o135UYkP019919 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Feb 2010 00:30:36 -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 o135UXE7027568; Wed, 3 Feb 2010 06:30:33 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id o135UWqY027567; Wed, 3 Feb 2010 06:30:32 +0100 Date: Wed, 03 Feb 2010 05:30:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: RFC: fix virtual base class bugs Message-ID: <20100203053032.GA27503@host0.dyn.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-08-17) 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-02/txt/msg00059.txt.bz2 On Tue, 02 Feb 2010 17:45:33 +0100, Tom Tromey wrote: > >>>>> "Tom" == Tom Tromey writes: > > Tom> This patch fixes all the virtual base class printing bugs I could find. > Tom> I plan to check this in soon unless there are comments or objections. > > I checked this in. On x86_64-unknown-linux-gnu (Fedora 12, gcc-c++-4.4.2-20.fc12.x86_64): Running ./gdb.cp/virtbase.exp ... PASS: gdb.cp/virtbase.exp: continue to breakpoint: first breakpoint PASS: gdb.cp/virtbase.exp: print *this FAIL: gdb.cp/virtbase.exp: print x PASS: gdb.cp/virtbase.exp: continue to breakpoint: second breakpoint PASS: gdb.cp/virtbase.exp: print x PASS: gdb.cp/virtbase.exp: continue to breakpoint: third breakpoint print x -$2 = 2 -(gdb) PASS: gdb.cp/virtbase.exp: print x +$2 = 4197400 +(gdb) FAIL: gdb.cp/virtbase.exp: print x ("print x" name could be unique) Unaware of the reason. Regards, Jan