From: Adam Fedor <fedor@doc.com>
To: Andrew Cagney <ac131313@redhat.com>
Cc: GDB Patches <gdb-patches@sources.redhat.com>
Subject: Re: [RFA] Compile objc-lang.c, objc-exp.tab.c [1/5]
Date: Mon, 24 Mar 2003 17:46:00 -0000 [thread overview]
Message-ID: <3E7F4454.2040702@doc.com> (raw)
In-Reply-To: <3E7A340F.3000704@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 931 bytes --]
Andrew Cagney wrote:
>> Index: parser-defs.h
>> ===================================================================
>> RCS file: /cvs/src/src/gdb/parser-defs.h,v
>> retrieving revision 1.15
>> diff -u -p -r1.15 parser-defs.h
>> --- parser-defs.h 19 Nov 2002 03:15:01 -0000 1.15
>> +++ parser-defs.h 3 Jan 2003 03:06:25 -0000
>> @@ -223,4 +223,9 @@ struct op_print
>>
>> extern void parser_fprintf (FILE *, const char *, ...) ATTR_FORMAT
>> (printf, 2 ,3);
>>
>> +/* for parsing Objective C */
>> +extern void start_msglist (void);
>> +extern void add_msglist (struct stoken *str, int addcolon);
>> +extern int end_msglist (void);
>> +
>> #endif /* PARSER_DEFS_H */
>
>
> Adam,
>
> I think the above declarations belong in "objc-lang.h" (since the
> corresponding definitions are in "objc-lang.c"). With that tweak, are
> you able to build a GDB that only links in objc-exp.[yo]?
>
Yes this does work...
[-- Attachment #2: enable-objc-exp.patch --]
[-- Type: text/plain, Size: 1845 bytes --]
2003-03-24 Adam Fedor <fedor@gnu.org>
* Makefile.in (objc_lang_h): Add $(paser_defs_h)
(YYOBJ): Add objc-exp.tab.o
* objc-lang.h: Add multiple inclusion protection.
(start_msglist, add_msglist, end_msglist): Additional declarations.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.349
diff -u -p -r1.349 Makefile.in
--- Makefile.in 22 Mar 2003 14:54:58 -0000 1.349
+++ Makefile.in 24 Mar 2003 17:38:59 -0000
@@ -686,7 +686,7 @@ mipsnbsd_tdep_h = mipsnbsd-tdep.h
monitor_h = monitor.h
nbsd_tdep_h = nbsd-tdep.h
ns32k_tdep_h = ns32k-tdep.h
-objc_lang_h = objc-lang.h
+objc_lang_h = objc-lang.h $(parser_defs_h)
objfiles_h = objfiles.h $(gdb_obstack_h) $(symfile_h)
observer_h = observer.h
ocd_h = ocd.h
@@ -874,6 +874,7 @@ YYFILES = c-exp.tab.c \
jv-exp.tab.c \
f-exp.tab.c m2-exp.tab.c p-exp.tab.c
YYOBJ = c-exp.tab.o \
+ objc-exp.tab.o \
jv-exp.tab.o \
f-exp.tab.o m2-exp.tab.o p-exp.tab.o
Index: objc-lang.h
===================================================================
RCS file: /cvs/src/src/gdb/objc-lang.h,v
retrieving revision 1.7
diff -u -p -r1.7 objc-lang.h
--- objc-lang.h 21 Feb 2003 02:45:50 -0000 1.7
+++ objc-lang.h 24 Mar 2003 17:39:11 -0000
@@ -19,6 +19,11 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#if !defined(OBJC_LANG_H)
+#define OBJC_LANG_H
+
+#include "parser-defs.h"
+
struct value;
struct block;
@@ -51,3 +56,10 @@ extern char *find_imps (struct symtab *s
unsigned int *nsym, unsigned int *ndebug);
extern struct value *value_nsstring (char *ptr, int len);
+
+/* for parsing Objective C */
+extern void start_msglist (void);
+extern void add_msglist (struct stoken *str, int addcolon);
+extern int end_msglist (void);
+
+#endif
next prev parent reply other threads:[~2003-03-24 17:46 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-03 22:06 Adam Fedor
2003-02-19 19:02 ` Elena Zannoni
2003-02-19 20:27 ` Adam Fedor
2003-02-19 21:11 ` Elena Zannoni
2003-03-20 21:27 ` Andrew Cagney
2003-03-20 21:39 ` Daniel Jacobowitz
2003-03-20 22:13 ` Andrew Cagney
2003-03-20 22:19 ` Daniel Jacobowitz
2003-03-31 2:23 ` Adam Fedor
2003-03-31 22:39 ` Andrew Cagney
2003-03-31 22:53 ` David Carlton
2003-03-31 23:03 ` David Carlton
2003-03-31 23:15 ` Adam Fedor
2003-04-01 0:31 ` Andrew Cagney
2003-04-01 0:45 ` David Carlton
2003-04-01 4:09 ` Adam Fedor
2003-04-01 21:31 ` David Carlton
2003-04-01 21:38 ` Daniel Jacobowitz
2003-03-20 22:22 ` David Ayers
2003-03-20 21:35 ` Andrew Cagney
2003-03-24 17:46 ` Adam Fedor [this message]
2003-03-24 18:25 ` Andrew Cagney
2003-03-25 2:23 ` 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=3E7F4454.2040702@doc.com \
--to=fedor@doc.com \
--cc=ac131313@redhat.com \
--cc=gdb-patches@sources.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