]> gcc.gnu.org Git - gcc.git/commitdiff
jcf-jump.c (options): New --print-constants option.
authorPer Bothner <per@bothner.com>
Wed, 17 Mar 2004 00:00:40 +0000 (16:00 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Wed, 17 Mar 2004 00:00:40 +0000 (16:00 -0800)
* jcf-jump.c (options):  New --print-constants option.
* gcj.texi (Invoking jcf-dump):  Document --print-constants.

From-SVN: r79558

gcc/java/ChangeLog
gcc/java/gcj.texi
gcc/java/jcf-dump.c

index 0ea4ce1247bcb9b449169730c992826ac3ac9da7..2f48c3527be2e222b95cca3cf87a21871fdce8e4 100644 (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.
index 374bdf8bcc9605db77d574d3de8c78095fbc5053..21c12ee6cc941feab58eba7a1ea6a9bcf8a8db76 100644 (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
index c28a3f43c4cb092c3502b24a69b309e3218a6a43..3d5f0c513d9896b031e611697bdb2d11625b29dd 100644 (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 }
 };
 
This page took 0.094646 seconds and 5 git commands to generate.