From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19296 invoked by alias); 15 Apr 2008 08:46:06 -0000 Received: (qmail 19285 invoked by uid 22791); 15 Apr 2008 08:46:05 -0000 X-Spam-Check-By: sourceware.org Received: from relay-pt1.poste.it (HELO relay-pt1.poste.it) (62.241.4.164) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 15 Apr 2008 08:45:28 +0000 Received: from geppetto.reilabs.com (212.123.91.176) by relay-pt1.poste.it (7.3.122) (authenticated as stefano.sabatini-lala@poste.it) id 4803F04900003991 for gdb@sources.redhat.com; Tue, 15 Apr 2008 10:45:24 +0200 Received: from stefano by geppetto.reilabs.com with local (Exim 4.67) (envelope-from ) id 1Jlgnu-0004r2-6d for gdb@sources.redhat.com; Tue, 15 Apr 2008 10:46:14 +0200 Date: Tue, 15 Apr 2008 11:44:00 -0000 From: Stefano Sabatini To: gdb Mailing List Subject: Cannot resolve method to any overloaded instance Message-ID: <20080415084614.GA18034@geppetto> Mail-Followup-To: gdb Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-14) 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/msg00124.txt.bz2 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? There is some option/trick I have to know in order to be able to call the method from gdb? My gdb version: stefano@geppetto ~> gdb --version GNU gdb 6.7.1-debian Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". Many thanks in advance. -- Stefano Sabatini Linux user number 337176 (see http://counter.li.org)