From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26966 invoked by alias); 4 Jan 2007 19:22:00 -0000 Received: (qmail 26957 invoked by uid 22791); 4 Jan 2007 19:21:59 -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 19:21:55 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H2Y9v-0006KK-8w; Thu, 04 Jan 2007 14:21:51 -0500 Date: Thu, 04 Jan 2007 19:22:00 -0000 From: Daniel Jacobowitz To: Andreas Schwab Cc: Peng Yu , gdb@sourceware.org Subject: Re: How to print the return value of template member functions (C++)? Message-ID: <20070104192151.GA20596@nevyn.them.org> Mail-Followup-To: Andreas Schwab , Peng Yu , gdb@sourceware.org References: <366c6f340701031704i5437d6a9m6c5d3454b9fdce01@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/msg00062.txt.bz2 On Thu, Jan 04, 2007 at 02:36:55PM +0100, Andreas Schwab wrote: > "Peng Yu" writes: > > > $ cat main.cc > > #include > > #include > > > > int main() { > > boost::tuple a(10, 10); > > std::cout << a.get<0>() << " " << a.get<1>() << std::endl; > > } > > > > > > (gdb) p a.get<0>() > > Couldn't find method > > boost::tuples::tuple::get<0> > > I can't reproduce that with gdb 6.6. I can't with either 6.5 or 6.6. It must be some other environmental difference. I'm somewhat impressed that it works - GDB doesn't handle templates well. -- Daniel Jacobowitz CodeSourcery