This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Patch: bug fix for gcjh


I'm checking in this fix.
It fixes a bug in gcjh; PR gcj/205.
Method decompiling failed to take field mangling into account.

2000-04-16  Tom Tromey  <tromey@cygnus.com>

	* gjavah.c (decompile_method): Use print_field_name.
	Fixes PR gcj/205.


Tom

Index: gjavah.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/gjavah.c,v
retrieving revision 1.51
diff -u -r1.51 gjavah.c
--- gjavah.c	2000/04/04 20:40:19	1.51
+++ gjavah.c	2000/04/17 02:50:59
@@ -457,7 +457,6 @@
   char *override;
   const char *tmpconstptr;
 
-
   if (name_is_method_p (name, length))
     {
       /* This field name matches a method.  So override the name with
@@ -758,7 +757,8 @@
       name_and_type = JPOOL_USHORT2 (jcf, index);
       /* FIXME: ensure that tag is CONSTANT_NameAndType.  */
       name = JPOOL_USHORT1 (jcf, name_and_type);
-      print_name (out, jcf, name);
+      /* FIXME: flags.  */
+      print_field_name (out, jcf, name, 0);
       fputs ("; }", out);
       decompiled = 1;
     }

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