From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13881 invoked by alias); 10 Oct 2003 15:46:47 -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 13874 invoked from network); 10 Oct 2003 15:46:46 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 10 Oct 2003 15:46:46 -0000 Received: from drow by nevyn.them.org with local (Exim 4.22 #1 (Debian)) id 1A7zTa-0003ow-2g for ; Fri, 10 Oct 2003 11:46:46 -0400 Date: Fri, 10 Oct 2003 15:46:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: Unambiguously specifying source locations Message-ID: <20031010154646.GA11255@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <20031010153050.GA7318@nevyn.them.org> <3F86D2B6.8020503@inode.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F86D2B6.8020503@inode.at> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-10/txt/msg00176.txt.bz2 On Fri, Oct 10, 2003 at 05:39:34PM +0200, David Ayers wrote: > Daniel Jacobowitz wrote: > > >The use of braces is not entirely coincidental. decode_line_1 currently > >does not accept anything that starts with a '[' as far as I can see; ObjC > >selectors always have +[ or -[. > > > Actually this is not the case. If the +/- is omitted both are offered > as breakpoints if they exist: > > (gdb) b [NSObject autorelease] > [0] cancel > [1] all > [2] -[NSObject autorelease] at NSObject.m:1553 > [3] +[NSObject autorelease] at NSObject.m:1575 > > Hmm, thank you. I don't quite see how that happens so I'll have to go peer at linespec.c again. > But maybe you could rely on the fact that there must be a white space > between the class and the message. I'd rather not - there can be whitespace in file names, shared object names, et cetera. Perhaps something different is in order. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer