From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6524 invoked by alias); 4 Jan 2007 22:45:23 -0000 Received: (qmail 6516 invoked by uid 22791); 4 Jan 2007 22:45:22 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 04 Jan 2007 22:45:12 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H2bKg-0000A3-1f; Thu, 04 Jan 2007 17:45:10 -0500 Date: Thu, 04 Jan 2007 22:45:00 -0000 From: Daniel Jacobowitz To: Peng Yu Cc: gdb@sourceware.org Subject: Re: How to print the return value of template member functions (C++)? Message-ID: <20070104224509.GA32684@nevyn.them.org> Mail-Followup-To: Peng Yu , gdb@sourceware.org References: <366c6f340701031704i5437d6a9m6c5d3454b9fdce01@mail.gmail.com> <20070104192151.GA20596@nevyn.them.org> <366c6f340701041406x160579b0v2e6c5e284d263a1c@mail.gmail.com> <20070104220939.GB31120@nevyn.them.org> <366c6f340701041434y4d8f7dd9yec045c531e0ca261@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <366c6f340701041434y4d8f7dd9yec045c531e0ca261@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) 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: 2007-01/txt/msg00078.txt.bz2 On Thu, Jan 04, 2007 at 04:34:36PM -0600, Peng Yu wrote: > g++-3.4 (GCC) 3.4.4 20050314 (prerelease) (Debian 3.4.3-13sarge1) > Copyright (C) 2004 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > The gcc version is shown above. But how to make sure it is because gcc > bugs? Shall I use a later version? I tried it for you. It fails with 3.4 and succeeds with 4.1. I don't know if it's a GDB bug or a g++ bug; they are definitely very different debug info. It really could be either. -- Daniel Jacobowitz CodeSourcery