From: "Adam Fedor" <fedor@doc.com>
To: "Michael Snyder" <msnyder@redhat.com>
Cc: "GDB Patches" <gdb-patches@sources.redhat.com>
Subject: RE: [RFA] Add ObjC recognition to linespec.c [5/5]
Date: Tue, 07 Jan 2003 13:59:00 -0000 [thread overview]
Message-ID: <E5F2FFE55E362144876F14CB0AEE713911CA45@exchange1.urp.doc.com> (raw)
> -----Original Message-----
> From: Michael Snyder [mailto:msnyder@redhat.com]
> Sent: Monday, January 06, 2003 3:32 PM
> To: Adam Fedor
> Cc: GDB Patches
> Subject: Re: [RFA] Add ObjC recognition to linespec.c [5/5]
>
> > >>+
> > >>+ /* Is it an Objective-C selector? */
> > >>+
> > >>+ {
> > >>+ struct symtabs_and_lines values;
> > >>+ values = decode_objc (argptr, funfirstline, NULL,
> > >>+ canonical, saved_arg);
> > >>+ if (values.sals != NULL)
> > >>+ return values;
> > >>+ }
> > >
> > >
> > > Was this meant to be an if? It seems to be a naked block.
> > > I'd feel better if there was an if around it, eg. is there
> > > a simple way to test for a selector name? Do I remember
> > > that they begin with a unique prefix such as '@'?
> > >
> > >
> >
> > No. Because the user can do things like 'break init' or 'break
> > isAnImage', and this will determine that these are really
> Objective-C
> > methods and not regular C functions. It's really just a way
> to keep the
> > variable local to where it is really used.
>
> OK, so if there is a C function init and an objc selector init,
> how do we resolve the conflict? Which one wins? In other words,
> will this un-protected code (not inside an if) ever obscure a
> C function when it shouldn't?
>
You get presented with a choice:
(gdb) break init
[0] cancel
[1] all
[2] -[MyObject init] at testit.m:27
[3] -[NewObject init] at testit.m:13
[4] init at testit.m:33
>
So you can choose which init you want.
next reply other threads:[~2003-01-07 13:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-07 13:59 Adam Fedor [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-01-07 13:56 Adam Fedor
2003-01-03 23:31 Adam Fedor
2003-01-04 1:32 ` Michael Snyder
2003-01-04 2:53 ` Adam Fedor
2003-01-06 20:32 ` Michael Snyder
2003-01-06 20:23 ` Elena Zannoni
2003-01-11 4:49 ` Adam Fedor
2003-02-19 15:16 ` Elena Zannoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E5F2FFE55E362144876F14CB0AEE713911CA45@exchange1.urp.doc.com \
--to=fedor@doc.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox