Commit 7f8b151b by Tom Tromey Committed by Tom Tromey

gcj.texi (Invoking gcj-dbtool): Document '-f'.

gcc/java:
	* gcj.texi (Invoking gcj-dbtool): Document '-f'.
libjava:
	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Recognize '-f'.
	(usage): Document '-f'.

From-SVN: r96041
parent 088a1762
2005-03-07 Tom Tromey <tromey@redhat.com>
* gcj.texi (Invoking gcj-dbtool): Document '-f'.
2005-03-06 Kazu Hirata <kazu@cs.umass.edu> 2005-03-06 Kazu Hirata <kazu@cs.umass.edu>
* jcf-dump.c, jcf-io.c, jcf-reader.c, lang.c, parse.h, * jcf-dump.c, jcf-io.c, jcf-reader.c, lang.c, parse.h,
......
...@@ -990,7 +990,8 @@ Each time a class is initialized, print a short message on standard error. ...@@ -990,7 +990,8 @@ Each time a class is initialized, print a short message on standard error.
@c man begin SYNOPSIS gcj-dbtool @c man begin SYNOPSIS gcj-dbtool
gcj-dbtool @option{OPTION} @var{DBFILE} [@option{MORE}] @dots{} gcj-dbtool @option{OPTION} @var{DBFILE} [@option{MORE}] @dots{}
gcj-dbtool [@option{-n}] [@option{-a}] [@option{-t}] [@option{-l}] gcj-dbtool [@option{-n}] [@option{-a}] [@option{-f}]
[@option{-t}] [@option{-l}]
[@option{-v}] [@option{--version}] [@option{--help}] [@option{-v}] [@option{--version}] [@option{--help}]
@c man end @c man end
...@@ -1027,11 +1028,14 @@ you can choose a larger initial size if desired. The default size is ...@@ -1027,11 +1028,14 @@ you can choose a larger initial size if desired. The default size is
32,749. 32,749.
@item -a @var{DBFILE} @var{JARFILE} @var{LIB} @item -a @var{DBFILE} @var{JARFILE} @var{LIB}
@itemx -f @var{DBFILE} @var{JARFILE} @var{LIB}
This adds a jar file to the database. For each class file in the jar, This adds a jar file to the database. For each class file in the jar,
a cryptographic signature of the bytecode representation of the class a cryptographic signature of the bytecode representation of the class
is recorded in the database. At runtime, a class is looked up by its is recorded in the database. At runtime, a class is looked up by its
signature and the compiled form of the class is looked for in the signature and the compiled form of the class is looked for in the
corresponding shared library. corresponding shared library. The @option{-a} option will verify
that @var{LIB} exists before adding it to the database; @option{-f}
skips this check.
@item -t @var{DBFILE} @item -t @var{DBFILE}
Test a database. Test a database.
......
2005-03-07 Tom Tromey <tromey@redhat.com> 2005-03-07 Tom Tromey <tromey@redhat.com>
* gnu/gcj/tools/gcj_dbtool/Main.java (main): Recognize '-f'.
(usage): Document '-f'.
2005-03-07 Tom Tromey <tromey@redhat.com>
* java/lang/VMCompiler.java (md5Digest): New field. * java/lang/VMCompiler.java (md5Digest): New field.
(compileClass): Clone md5Digest instead of looking up a new one. (compileClass): Clone md5Digest instead of looking up a new one.
......
...@@ -75,7 +75,7 @@ public class Main ...@@ -75,7 +75,7 @@ public class Main
return; return;
} }
if (s[0].equals("-a")) if (s[0].equals("-a") || s[0].equals("-f"))
{ {
// Add a jar file to a database, creating it if necessary. // Add a jar file to a database, creating it if necessary.
// Copies the database, adds the jar file to the copy, and // Copies the database, adds the jar file to the copy, and
...@@ -94,7 +94,7 @@ public class Main ...@@ -94,7 +94,7 @@ public class Main
map = PersistentByteMap.emptyPersistentByteMap(database, map = PersistentByteMap.emptyPersistentByteMap(database,
100, 100*32); 100, 100*32);
File soFile = new File(s[3]); File soFile = new File(s[3]);
if (! soFile.isFile()) if (! s[0].equals("-f") && ! soFile.isFile())
throw new IllegalArgumentException(s[3] + " is not a file"); throw new IllegalArgumentException(s[3] + " is not a file");
map = addJar(jar, map, soFile); map = addJar(jar, map, soFile);
} }
...@@ -279,6 +279,8 @@ public class Main ...@@ -279,6 +279,8 @@ public class Main
+ " gcj-dbtool -n file.gcjdb [size] - Create a new gcj map database\n" + " gcj-dbtool -n file.gcjdb [size] - Create a new gcj map database\n"
+ " gcj-dbtool -a file.gcjdb file.jar file.so\n" + " gcj-dbtool -a file.gcjdb file.jar file.so\n"
+ " - Add the contents of file.jar to a new gcj map database\n" + " - Add the contents of file.jar to a new gcj map database\n"
+ " gcj-dbtool -f file.gcjdb file.jar file.so\n"
+ " - Add the contents of file.jar to a new gcj map database\n"
+ " gcj-dbtool -t file.gcjdb - Test a gcj map database\n" + " gcj-dbtool -t file.gcjdb - Test a gcj map database\n"
+ " gcj-dbtool -l file.gcjdb - List a gcj map database\n" + " gcj-dbtool -l file.gcjdb - List a gcj map database\n"
+ " gcj-dbtool -m dest.gcjdb [source.gcjdb]...\n" + " gcj-dbtool -m dest.gcjdb [source.gcjdb]...\n"
......
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