discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objc patch for gdb 5.3


From: Frederic Stark
Subject: Re: objc patch for gdb 5.3
Date: Wed, 08 Jan 2003 14:58:39 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021127

Stefan Böhringer wrote:
> A patch against the gdb5.3 source tree to enable support for the
> Objective-C language is available at:
>
> http://www.uni-essen.de/~bt0756/download/gdb-5_3-objc-patch.tgz
>
> it is derived from the patch available at ftp.gnustep.org

Thank you very much. I got a working gdb 5.3 under cygwin/msys by applying the patch to an official gdb-5.3 source release.

There were three missing ';' in objc-expr that prevented to compile:

--- objc-exp.y    Thu Dec 19 20:13:07 2002
+++ ../gdb-5.3/gdb/objc-exp.y    Tue Jan  7 08:49:09 2003
@@ -250,9 +250,11 @@
 /* Expressions, not including the comma operator.  */
 exp    :    '*' exp    %prec UNARY
             { write_exp_elt_opcode (UNOP_IND); }
+    ;

 exp    :    '&' exp    %prec UNARY
             { write_exp_elt_opcode (UNOP_ADDR); }
+    ;

 exp    :    '-' exp    %prec UNARY
             { write_exp_elt_opcode (UNOP_NEG); }
@@ -572,6 +574,7 @@
               write_exp_elt_opcode (OP_SELECTOR);
               write_exp_string ($1);
               write_exp_elt_opcode (OP_SELECTOR); }
+    ;

 exp    :    SIZEOF '(' type ')'    %prec UNARY
             { write_exp_elt_opcode (OP_LONG);

Thanks again.

--fred





reply via email to

[Prev in Thread] Current Thread [Next in Thread]