[RFA] Compile objc-lang.c, objc-exp.tab.c [1/5]

Andrew Cagney ac131313@redhat.com
Thu Mar 20 21:35:00 GMT 2003


> 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]?

Andrew




More information about the Gdb-patches mailing list