This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Unambiguously specifying source locations
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