diff --git a/agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java b/agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java index a5393107aa5234a8e8a3ed1220e51338317c5a5e..b1f8d838fc8747f889b0cd08ab94f5b3d3ee660e 100644 --- a/agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java +++ b/agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java @@ -113,7 +113,8 @@ public class CLHSDB { 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'"); diff --git a/agent/src/share/classes/sun/jvm/hotspot/HSDB.java b/agent/src/share/classes/sun/jvm/hotspot/HSDB.java index 9ae362baa48ee7546b0e05896cdc211aab1301d2..97726c4e6a56bcbc9b6054a66d1ae6dffb03f817 100644 --- a/agent/src/share/classes/sun/jvm/hotspot/HSDB.java +++ b/agent/src/share/classes/sun/jvm/hotspot/HSDB.java @@ -82,7 +82,8 @@ public class HSDB implements ObjectHistogramPanel.Listener, SAListener { 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'");