aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2005-03-11 17:35:37 +0000
committerTom Tromey <tromey@gcc.gnu.org>2005-03-11 17:35:37 +0000
commit558b8548b432b0c0ba14009070940b73409fc721 (patch)
treeebb9827ca31651ccaf01d0d7702159f6bc188a9c /libjava/gnu
parent0ac40e7a866e3b149bdeacbf5cc36d1fe364a952 (diff)
downloadgcc-558b8548b432b0c0ba14009070940b73409fc721.zip
gcc-558b8548b432b0c0ba14009070940b73409fc721.tar.gz
gcc-558b8548b432b0c0ba14009070940b73409fc721.tar.bz2
Main.java (main): Handle '-p'.
libjava: * gnu/gcj/tools/gcj_dbtool/Main.java (main): Handle '-p'. (usage): Document '-p'. * Makefile.in: Rebuilt. * Makefile.am (dbexecdir): New variable. (db_name): Likewise. (dbexec_DATA): Likewise. ($(db_name)): New target. (AM_CXXFLAGS): Define LIBGCJ_DEFAULT_DATABASE. * java/lang/natRuntime.cc (insertSystemProperties): Set default system database. gcc/java: * gcj.texi (Invoking gcj-dbtool): Document 'gcj-dbtool -p'. (libgcj Runtime Properties): Document the default .db. From-SVN: r96303
Diffstat (limited to 'libjava/gnu')
-rw-r--r--libjava/gnu/gcj/tools/gcj_dbtool/Main.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/libjava/gnu/gcj/tools/gcj_dbtool/Main.java b/libjava/gnu/gcj/tools/gcj_dbtool/Main.java
index c918ad8..84b6f6d 100644
--- a/libjava/gnu/gcj/tools/gcj_dbtool/Main.java
+++ b/libjava/gnu/gcj/tools/gcj_dbtool/Main.java
@@ -256,7 +256,16 @@ public class Main
}
return;
}
-
+
+ if (s[0].equals("-p"))
+ {
+ insist (s.length == 1);
+ String result = System.getProperty("gnu.gcj.precompiled.db.path",
+ "");
+ System.out.println (result);
+ return;
+ }
+
usage(System.err);
System.exit(1);
}
@@ -284,6 +293,7 @@ public class Main
+ " gcj-dbtool -t file.gcjdb - Test 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 -p - Print default database name\n"
+ " - Merge gcj map databases into dest\n"
+ " Replaces dest\n"
+ " To add to dest, include dest in the list of sources");