From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15136 invoked by alias); 15 Apr 2008 13:11:03 -0000 Received: (qmail 15126 invoked by uid 22791); 15 Apr 2008 13:11:02 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 15 Apr 2008 13:10:42 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 5199D983D9 for ; Tue, 15 Apr 2008 13:10:40 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 34F9498149 for ; Tue, 15 Apr 2008 13:10:40 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Jlkvn-0001fU-GQ for gdb@sources.redhat.com; Tue, 15 Apr 2008 09:10:39 -0400 Date: Tue, 15 Apr 2008 15:00:00 -0000 From: Daniel Jacobowitz To: gdb Mailing List Subject: Re: Cannot resolve method to any overloaded instance Message-ID: <20080415131039.GA6049@caradoc.them.org> Mail-Followup-To: gdb Mailing List References: <20080415084614.GA18034@geppetto> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080415084614.GA18034@geppetto> User-Agent: Mutt/1.5.17 (2007-12-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: 2008-04/txt/msg00129.txt.bz2 On Tue, Apr 15, 2008 at 10:46:14AM +0200, Stefano Sabatini wrote: > Hi all, > > I'm trying to debug a C++ application, and I need to invoke an > AsString() method to see an human readable representation of an > object, but I can't since I got: > > (gdb) p msg.AsString() > Cannot resolve method (null)AsString to any overloaded instance > > I googled without too much luck, many occurrence but no explanation. > Can you explain this message? Is AsString inlined? That often prevents function calling. Can you provide a test case? -- Daniel Jacobowitz CodeSourcery