This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Add rules for ObjC files
- From: Klee Dienes <klee at mit dot edu>
- To: Adam Fedor <fedor at doc dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 4 Oct 2002 05:25:17 -0400
- Subject: Re: Add rules for ObjC files
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.
Attachment:
objc.diffs
Description: Binary data
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.
The following diffs are unrelated to Objective-C; I'm attaching them
just for your reference (the ones in generic.diffs are likely to be
removed in our sources soon as well; the ones in number-parsing.diffs
remove a memory leak caused by calling parse_number on invalid, but are
unrelated to the Objective-C changes).
Attachment:
number-parsing.diffs
Description: Binary data
Attachment:
generic.diffs
Description: Binary data
On Thursday, October 3, 2002, at 09:54 PM, Adam Fedor wrote:
This patch adds rules for the ObjC files but does not enable them.
2002-10-03 Adam Fedor <fedor@gnu.org>
* Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
(objc_lang_h): Define.
(YYFILES): Add objc-exp.tab.c.
(local-maintainer-clean): Remove objc-exp.tab.c.
(objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.