From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25982 invoked by alias); 4 Jan 2007 13:37:15 -0000 Received: (qmail 25961 invoked by uid 22791); 4 Jan 2007 13:37:14 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 04 Jan 2007 13:37:06 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id C386821762; Thu, 4 Jan 2007 14:37:03 +0100 (CET) From: Andreas Schwab To: "Peng Yu" Cc: gdb@sourceware.org Subject: Re: How to print the return value of template member functions (C++)? References: <366c6f340701031704i5437d6a9m6c5d3454b9fdce01@mail.gmail.com> X-Yow: I'm in DISGUISE as a BAGGAGE CHECKER....I can watch the house, if it's ORANGE... Date: Thu, 04 Jan 2007 13:37:00 -0000 In-Reply-To: <366c6f340701031704i5437d6a9m6c5d3454b9fdce01@mail.gmail.com> (Peng Yu's message of "Wed, 3 Jan 2007 19:04:52 -0600") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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/msg00059.txt.bz2 "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. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."