From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28823 invoked by alias); 24 Mar 2003 17:46:02 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 28814 invoked from network); 24 Mar 2003 17:46:01 -0000 Received: from unknown (63.119.183.65) by sources.redhat.com with QMTP; 24 Mar 2003 17:46:01 -0000 Received: (qmail 31225 invoked from network); 24 Mar 2003 17:47:34 -0000 Received: from cpe-24-221-209-215.co.sprintbbd.net (HELO doc.com) (24.221.209.215) by external1 with SMTP; 24 Mar 2003 17:47:34 -0000 Message-ID: <3E7F4454.2040702@doc.com> Date: Mon, 24 Mar 2003 17:46:00 -0000 From: Adam Fedor User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20020905 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Cagney CC: GDB Patches Subject: Re: [RFA] Compile objc-lang.c, objc-exp.tab.c [1/5] References: <3E16093D.3070907@doc.com> <3E7A340F.3000704@redhat.com> Content-Type: multipart/mixed; boundary="------------010706010608050102040708" X-SW-Source: 2003-03/txt/msg00475.txt.bz2 This is a multi-part message in MIME format. --------------010706010608050102040708 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 931 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... --------------010706010608050102040708 Content-Type: text/plain; name="enable-objc-exp.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="enable-objc-exp.patch" Content-length: 1845 2003-03-24 Adam Fedor * 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 --------------010706010608050102040708--