From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14064 invoked by alias); 7 Nov 2003 16:12:22 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 14044 invoked from network); 7 Nov 2003 16:12:22 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 7 Nov 2003 16:12:22 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1AI9Dg-0007d1-TY for ; Fri, 07 Nov 2003 11:12:20 -0500 Date: Fri, 07 Nov 2003 16:12:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: Unable to define breakpoint at a method. Message-ID: <20031107161220.GA29307@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <2BD5725B505DC54E8CDCF251DC8A2E7E029B37FC@fmsmsx404.fm.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2BD5725B505DC54E8CDCF251DC8A2E7E029B37FC@fmsmsx404.fm.intel.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-11/txt/msg00063.txt.bz2 On Thu, Nov 06, 2003 at 10:30:49PM -0800, Janarthanan, Bhagatram wrote: > Hi all, > > I am trying to define a debug breakpoint at a method of a class > which is included through a shared library(linux - ".so"). I used g++ > with '-g' to compile. The library has been dynamically loaded into the > executable. > > ============ > (gdb) b Controller::instance_ > the class Controller does not have any method named instance_ > Hint: try 'Controller::instance_ or 'Controller::instance_ > (Note leading single quote.) > (gdb) b Controller::instance_ > instance_add_vars(Snr_instance_t*) > instance_match_suppliers(Snr_instance_t*, Snr_group_t*) > (gdb) b Controller::instance_add_vars > the class Controller does not have any method named instance_add_vars > Hint: try 'Controller::instance_add_vars or > 'Controller::instance_add_vars > (Note leading single quote.) > (gdb) b Controller::instance_add_vars(Snr_instance_t*) > Function "Controller::instance_add_vars(Snr_instance_t*)" not defined. > ===================== > > As shown above, it does display the symbol when I enter TAB-TAB. > But it saya there is no such method when I enter the complete method. Is > there anything I am missing? There are some bugs in this area. See the ' mark in the suggestion? Try with that. If you can create a small testcase, that would help us fix the underlying problem. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer