From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5115 invoked by alias); 15 Nov 2006 00:12:46 -0000 Received: (qmail 5101 invoked by uid 22791); 15 Nov 2006 00:12:45 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.190) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 15 Nov 2006 00:12:37 +0000 Received: by nf-out-0910.google.com with SMTP id p77so538106nfc for ; Tue, 14 Nov 2006 16:12:34 -0800 (PST) Received: by 10.48.142.8 with SMTP id p8mr1803618nfd.1163549554736; Tue, 14 Nov 2006 16:12:34 -0800 (PST) Received: by 10.49.61.8 with HTTP; Tue, 14 Nov 2006 16:12:34 -0800 (PST) Message-ID: <366c6f340611141612s2ccd04d0i826c5c8253ec74d@mail.gmail.com> Date: Wed, 15 Nov 2006 00:12:00 -0000 From: "Peng Yu" Subject: Re: How to debug C++ functor in gdb? Cc: gdb@sourceware.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <366c6f340610291301p523de441r6b691975822a9131@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00090.txt.bz2 On 10/29/06, Andreas Schwab wrote: > "Peng Yu" writes: > > > I set a break point at the line indicated in the comment. Then I call > > the following command in gdb. It failed. Is there any way that I can > > call the functor _f? > > > > (gdb) p _f(10) > > Couldn't find method functor >::_f > > (gdb) p _f.'operator()'(10) > $1 = 10 > > Andreas. Hi, Is it syntax described in the manual somewhere? Thanks, Peng