Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stan Shebs <shebs@apple.com>
To: Klee Dienes <klee@mit.edu>
Cc: Adam Fedor <fedor@doc.com>, gdb-patches@sources.redhat.com
Subject: Re: Add rules for ObjC files
Date: Fri, 04 Oct 2002 09:49:00 -0000	[thread overview]
Message-ID: <3D9DC65C.1070703@apple.com> (raw)
In-Reply-To: <3239ADC4-D77B-11D6-A34B-00039396EEB8@mit.edu>

Klee Dienes wrote:

> I'm not sure if this is something you want to hassle with at the  
> moment, or if you'd prefer to let it wait as a modification once a  
> working version of the Objective-C patches are successfully committed.
>
> But just as a heads-up, I should mention that in more recent versions  
> of our GDB, we've folded in all of the Objective-C support directly  
> into c-exp.y, and removed objc-exp.y as a file entirely.  Most of  
> objc-exp.y was always just an out-of-date copy of c-exp.y, anyway;  
> moving the (rather small) changes into c-exp.y directly not only  
> allowed us to track changes to the C parser much more smoothly, it  
> should also allow for much better Objective-C++ support.
>
> You'll probably want to look at the most recent version of our GDB 
> tree  
> (http://www.opensource.apple.com/projects/darwin/6.0/source/other/gdb- 
> 20020918.tar.gz; no registration or anything similar required), and  
> check out our changes to c-exp.y; I've attached them for your  
> convenience.
>
> One downside to having the changes directly in c-exp.y is that I don't 
> know of any good way to conditionalize them; though I am by no means a 
> bison guru.

ObjC is supposed to be a strict superset of C, so at least in theory,
extensions don't need to be conditionalized at all, or they can be
disallowed after parsing, if you wanted to have a "strict C mode"
(although I note that the little array@45 extension is always available,
even though it's not valid C).

Stan




  parent reply	other threads:[~2002-10-04 16:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-03 18:53 Adam Fedor
2002-10-04  2:25 ` Klee Dienes
2002-10-04  9:07   ` Adam Fedor
2002-10-04  9:49   ` Stan Shebs [this message]
2002-10-04 13:20     ` Klee Dienes
2002-10-04 14:49       ` Michael Snyder
2002-10-04 15:31         ` Kevin Buettner
2002-10-21 12:08   ` Andrew Cagney
2002-10-21 15:40     ` Adam Fedor
2002-10-24 20:33       ` Adam Fedor

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=3D9DC65C.1070703@apple.com \
    --to=shebs@apple.com \
    --cc=fedor@doc.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=klee@mit.edu \
    /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