This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
patch: parsing Java characters
- To: gdb-patches@sourceware.cygnus.com
- Subject: patch: parsing Java characters
- From: Jim Blandy <jimb@cygnus.com>
- Date: Thu, 17 Jun 1999 15:19:25 -0500 (EST)
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++;