This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

patch: parsing Java characters



This change complements the previous one.  Actually, you need both of
these to make gdb.java/jv-print.exp happy.

1999-06-04  Jim Blandy	<jimb@savonarola.red-bean.com>

	* jv-exp.y (yylex): Say character literals are java_char_type, not
	builtin_type_char.  Java treats the latter like `byte'.

Index: gdb/jv-exp.y
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/jv-exp.y,v
retrieving revision 2.7
diff -c -c -2 -p -r2.7 jv-exp.y
*** gdb/jv-exp.y	1999/02/18 01:07:35	2.7
--- gdb/jv-exp.y	1999/06/11 04:19:15
*************** yylex ()
*** 900,904 ****
  
        yylval.typed_val_int.val = c;
!       yylval.typed_val_int.type = builtin_type_char;
  
        c = *lexptr++;
--- 900,904 ----
  
        yylval.typed_val_int.val = c;
!       yylval.typed_val_int.type = java_char_type;
  
        c = *lexptr++;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]