From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26963 invoked by alias); 29 Jul 2005 15:20:39 -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 26914 invoked by uid 22791); 29 Jul 2005 15:20:28 -0000 Received: from qnxmail.qnx.com (HELO nimbus.ott.qnx.com) (209.226.137.76) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 29 Jul 2005 15:20:28 +0000 Received: by NIMBUS with Internet Mail Service (5.5.2653.19) id ; Fri, 29 Jul 2005 11:20:27 -0400 Message-ID: <1578FF984ABAD411AFA5000102C4BB5B11DEF1F6@NIMBUS> From: Alain Magloire To: gdb@sources.redhat.com Subject: RE: Failed breakpoint for C++ in gdb Date: Fri, 29 Jul 2005 15:20:00 -0000 MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2005-07/txt/msg00270.txt.bz2 > > It's completely at the whim of the compiler. Whatever strings the > compiler has put in the debug information, those are the ones GDB will > use in symbol names. It varies between GCC versions; I believe it also > varies between formats. > And the good news kept coming ;-( On the same topic: void String::check(int i) const { if (i<0 || rep->sz<=i) throw Range(); } int main() { ... } (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. 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?