This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Unambiguously specifying source locations
- From: David Ayers <d dot ayers at inode dot at>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 10 Oct 2003 17:39:34 +0200
- Subject: Re: Unambiguously specifying source locations
- References: <20031010153050.GA7318@nevyn.them.org>
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
>
But maybe you could rely on the fact that there must be a white space
between the class and the message.
Cheers,
David Ayers