Patch: bug fix for gcjh
Tom Tromey
tromey@cygnus.com
Sun Apr 16 19:53:00 GMT 2000
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;
}
More information about the Gcc-patches
mailing list