From: Pedro Alves <palves@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] merge objc-exp.y into c-exp.y
Date: Wed, 18 Jul 2012 17:09:00 -0000 [thread overview]
Message-ID: <5006EDA5.2080107@redhat.com> (raw)
In-Reply-To: <874np53t85.fsf@fleche.redhat.com>
On 07/18/2012 05:54 PM, Tom Tromey wrote:
> I'm curious about opinions on this patch. In the absence of comments
> I plan to check it in.
It all sounds good to me, FWIW.
> This patch removes objc-exp.y, merging it back into c-exp.y. This
> fixes some latent bugs in objc-exp.y -- basically, whatever we fixed
> in c-exp.y in the last several years. One such is in
> gdb.objc/print.exp, see the patch.
>
> This also reduces the amount of code we have to maintain and removes
> one of the more egregious examples of cut-and-paste from gdb.
>
> To make the resulting parser avoid Objective C constructs when in C or
> C++ modes, I made the lexer return a new OBJC_LBRAC token instead of
> '[' when parsing ObjC. Then I cloned a small number of (trivial)
> productions.
>
> This also fixes a bug in @selector parsing. The old code implemented
> a kind of bad, buggy miniature parser in the lexer, using 'strchr' to
> find the next paren. The new code uses the parser to do the parsing.
--
Pedro Alves
next prev parent reply other threads:[~2012-07-18 17:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-18 16:55 Tom Tromey
2012-07-18 17:09 ` Pedro Alves [this message]
2012-07-26 20:03 ` Tom Tromey
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=5006EDA5.2080107@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@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