Commit c4cef86b by Per Bothner Committed by Per Bothner

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
parent bc4c01b7
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.
......
......@@ -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
......
......@@ -875,6 +875,7 @@ static const struct option options[] =
{ "version", no_argument, NULL, OPT_VERSION },
{ "javap", no_argument, NULL, OPT_JAVAP },
{ "print-main", no_argument, &flag_print_main, 1 },
{ "print-constants", no_argument, &flag_print_constant_pool, 1 },
{ NULL, no_argument, NULL, 0 }
};
......
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