Commit 2d47d84c by Tom Tromey Committed by Tom Tromey

jcf-dump.c (HANDLE_INNERCLASSES_ATTRIBUTE): Handle cases where…

jcf-dump.c (HANDLE_INNERCLASSES_ATTRIBUTE): Handle cases where inner_class_info_index==0 or outer_class_info_index==0.

	* jcf-dump.c (HANDLE_INNERCLASSES_ATTRIBUTE): Handle cases where
	inner_class_info_index==0 or outer_class_info_index==0.

From-SVN: r97263
parent 2228adb2
2005-03-30 Tom Tromey <tromey@redhat.com>
* jcf-dump.c (HANDLE_INNERCLASSES_ATTRIBUTE): Handle cases where
inner_class_info_index==0 or outer_class_info_index==0.
2005-03-29 Tom Tromey <tromey@redhat.com> 2005-03-29 Tom Tromey <tromey@redhat.com>
* gcj.texi (libgcj Runtime Properties): Document * gcj.texi (libgcj Runtime Properties): Document
......
...@@ -65,7 +65,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -65,7 +65,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include <getopt.h> #include <getopt.h>
#include <math.h> #include <math.h>
/* Outout file. */ /* Output file. */
FILE *out; FILE *out;
/* Name of output file, if NULL if stdout. */ /* Name of output file, if NULL if stdout. */
char *output_file = NULL; char *output_file = NULL;
...@@ -320,8 +320,12 @@ utf8_equal_string (JCF *jcf, int index, const char * value) ...@@ -320,8 +320,12 @@ utf8_equal_string (JCF *jcf, int index, const char * value)
if (flag_print_class_info) \ if (flag_print_class_info) \
{ \ { \
fprintf (out, "\n inner: "); \ fprintf (out, "\n inner: "); \
if (inner_class_info_index == 0) \
fprintf (out, " (no inner info index)"); \
else \
print_constant_terse_with_index (out, jcf, \ print_constant_terse_with_index (out, jcf, \
inner_class_info_index, CONSTANT_Class); \ inner_class_info_index, \
CONSTANT_Class); \
if (inner_name_index == 0) \ if (inner_name_index == 0) \
fprintf (out, " (anonymous)"); \ fprintf (out, " (anonymous)"); \
else if (verbose || flag_print_constant_pool) \ else if (verbose || flag_print_constant_pool) \
...@@ -334,8 +338,12 @@ utf8_equal_string (JCF *jcf, int index, const char * value) ...@@ -334,8 +338,12 @@ utf8_equal_string (JCF *jcf, int index, const char * value)
fprintf (out, ", access flags: 0x%x", inner_class_access_flags); \ fprintf (out, ", access flags: 0x%x", inner_class_access_flags); \
print_access_flags (out, inner_class_access_flags, 'c'); \ print_access_flags (out, inner_class_access_flags, 'c'); \
fprintf (out, ", outer class: "); \ fprintf (out, ", outer class: "); \
if (outer_class_info_index == 0) \
fprintf (out, "(not a member)"); \
else \
print_constant_terse_with_index (out, jcf, \ print_constant_terse_with_index (out, jcf, \
outer_class_info_index, CONSTANT_Class); \ outer_class_info_index, \
CONSTANT_Class); \
} \ } \
} \ } \
if (flag_print_class_info) \ if (flag_print_class_info) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment