From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2715 invoked by alias); 4 Jan 2007 22:06:41 -0000 Received: (qmail 2705 invoked by uid 22791); 4 Jan 2007 22:06:40 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.230) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 04 Jan 2007 22:06:36 +0000 Received: by wr-out-0506.google.com with SMTP id i23so2528546wra for ; Thu, 04 Jan 2007 14:06:34 -0800 (PST) Received: by 10.90.36.9 with SMTP id j9mr6874697agj.1167948394928; Thu, 04 Jan 2007 14:06:34 -0800 (PST) Received: by 10.90.66.1 with HTTP; Thu, 4 Jan 2007 14:06:34 -0800 (PST) Message-ID: <366c6f340701041406x160579b0v2e6c5e284d263a1c@mail.gmail.com> Date: Thu, 04 Jan 2007 22:06:00 -0000 From: "Peng Yu" To: gdb@sourceware.org Subject: Re: How to print the return value of template member functions (C++)? In-Reply-To: <20070104192151.GA20596@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <366c6f340701031704i5437d6a9m6c5d3454b9fdce01@mail.gmail.com> <20070104192151.GA20596@nevyn.them.org> 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/msg00073.txt.bz2 On 1/4/07, Daniel Jacobowitz wrote: > 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. I tried on 6.6 as well. The same error is gotten. Would you please let me know what kind of environmental stuffs are relevant so that I narrow down the problem? Thanks, Peng