jcf-jump.c (options): New --print-constants option.

* jcf-jump.c (options):  New --print-constants option.
	* gcj.texi (Invoking jcf-dump):  Document --print-constants.

From-SVN: r79558
This commit is contained in:
Per Bothner 2004-03-16 16:00:40 -08:00 committed by Per Bothner
parent bc4c01b725
commit c4cef86b3b
3 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2004-03-16 Per Bothner <per@bothner.com>
* jcf-jump.c (options): New --print-constants option.
* gcj.texi (Invoking jcf-dump): Document --print-constants.
* jcf-dump.c (flag_print_constant_pool): Default to off.
(print_constant_terse_with_index): New helper function.
(various places): Check flag_print_constant_pool where missing.

View File

@ -760,6 +760,10 @@ or file name.
@item -c
Disassemble method bodies. By default method bodies are not printed.
@item --print-constants
Print the constant pool. When printing a reference to a constant
also print its index in the constant pool.
@item --javap
Generate output in @code{javap} format. The implementation of this
feature is very incomplete.
@ -778,6 +782,7 @@ Print version number, then exit.
@item -v, --verbose
Print extra information while running.
Implies @code{--print-constants}.
@end table
@c man end

View File

@ -874,7 +874,8 @@ static const struct option options[] =
{ "verbose", no_argument, NULL, 'v' },
{ "version", no_argument, NULL, OPT_VERSION },
{ "javap", no_argument, NULL, OPT_JAVAP },
{ "print-main", no_argument, &flag_print_main, 1 },
{ "print-main", no_argument, &flag_print_main, 1 },
{ "print-constants", no_argument, &flag_print_constant_pool, 1 },
{ NULL, no_argument, NULL, 0 }
};