changeset 9035:b484b18b9f14

8059038: Create new launcher for SA tools Summary: Create separate launchers for clhsdb and hsdb since JDK 8 uses separate launchers for SA tools Reviewed-by: kevinw, andrew
author sgehwolf
date Wed, 12 Dec 2018 14:46:23 +0100
parents da2e98c027fd
children c40a28e54185
files agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java agent/src/share/classes/sun/jvm/hotspot/HSDB.java
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java	Thu Dec 20 20:11:38 2018 +0000
+++ b/agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java	Wed Dec 12 14:46:23 2018 +0100
@@ -113,7 +113,8 @@
     private String coreFilename;
 
     private void doUsage() {
-        System.out.println("Usage:  java CLHSDB [[pid] | [path-to-java-executable [path-to-corefile]] | help ]");
+        // With JDK-8059038 launchers for this class exist. Print usage for those launchers.
+        System.out.println("Usage:  clhsdb [[pid] | [path-to-java-executable [path-to-corefile]] | help | -help ]");
         System.out.println("           pid:                     attach to the process whose id is 'pid'");
         System.out.println("           path-to-java-executable: Debug a core file produced by this program");
         System.out.println("           path-to-corefile:        Debug this corefile.  The default is 'core'");
--- a/agent/src/share/classes/sun/jvm/hotspot/HSDB.java	Thu Dec 20 20:11:38 2018 +0000
+++ b/agent/src/share/classes/sun/jvm/hotspot/HSDB.java	Wed Dec 12 14:46:23 2018 +0100
@@ -82,7 +82,8 @@
   private String coreFilename;
 
   private void doUsage() {
-    System.out.println("Usage:  java HSDB [[pid] | [path-to-java-executable [path-to-corefile]] | help ]");
+    // With JDK-8059038 launchers for this class exist. Print usage for those launchers.
+    System.out.println("Usage:  hsdb [[pid] | [path-to-java-executable [path-to-corefile]] | help | -help ]");
     System.out.println("           pid:                     attach to the process whose id is 'pid'");
     System.out.println("           path-to-java-executable: Debug a core file produced by this program");
     System.out.println("           path-to-corefile:        Debug this corefile.  The default is 'core'");