From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 859 invoked by alias); 29 Jul 2005 15:29:05 -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 730 invoked by uid 22791); 29 Jul 2005 15:28:56 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 29 Jul 2005 15:28:56 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1DyWn8-00084C-7M; Fri, 29 Jul 2005 11:28:54 -0400 Date: Fri, 29 Jul 2005 15:29:00 -0000 From: Daniel Jacobowitz To: Alain Magloire Cc: gdb@sources.redhat.com Subject: Re: Failed breakpoint for C++ in gdb Message-ID: <20050729152854.GA30881@nevyn.them.org> Mail-Followup-To: Alain Magloire , gdb@sources.redhat.com References: <1578FF984ABAD411AFA5000102C4BB5B11DEF1F6@NIMBUS> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1578FF984ABAD411AFA5000102C4BB5B11DEF1F6@NIMBUS> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-07/txt/msg00271.txt.bz2 On Fri, Jul 29, 2005 at 11:20:07AM -0400, Alain Magloire wrote: > (gdb) b String::check(int) const > Function "String::check(int)" not defined. > Make breakpoint pending on future shared library load? (y or [n]) n > (gdb) b "String::check(int) const" > Function "String::check(int)" not defined. > Make breakpoint pending on future shared library load? (y or [n]) n > (gdb) b 'String::check(int) const' > Breakpoint 1 at 0x4015bc: file 100992.cpp, line 150. > > I'm curious to know why ("") double quotes are not working, but single quote > seems to do the job. This is particular disturbing in the MI protocol where > it is clearly stated options/arguments containing spaces must be surrounded > with double quotes. Because the string is passed directly to the command line symbol name parser, and it treats single quotes specially. Really, you have to read linespec.c to figure out what it's doing. Basically, with the single quotes, you're getting a minimal symbol from the ELF symbol table. The others are trying for debug info lookups and having some problem. > Anyway just curious, this was sent by the folks from MontaVista 8-). It is > too late for the front to deal with it, but for the next version, is this PR > (bugzilla/gnats) material? I suppose so; but no one's working in this area, so it's more likely patch material :-) -- Daniel Jacobowitz CodeSourcery, LLC