aboutsummaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authorAlexey Ushakov <Alexey.Ushakov@jetbrains.com>2019-01-24 18:55:49 +0300
committerAlexey Ushakov <Alexey.Ushakov@jetbrains.com>2019-01-24 18:55:49 +0300
commitf030db962d53f02b902e1e2ca0f74f8a0be386e4 (patch)
tree957498813aa653147b1d812697002201ea9931cb /agent
parent1ff9a85175c57d0631d1a7a136d8729c4002f19f (diff)
parent7a64323a7a3b9f795ee943456e594e3c5ad2ce7d (diff)
downloadjdk8u_hotspot-f030db962d53f02b902e1e2ca0f74f8a0be386e4.tar.gz
# Conflicts: # make/windows/makefiles/sa.make
Diffstat (limited to 'agent')
-rw-r--r--agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java3
-rw-r--r--agent/src/share/classes/sun/jvm/hotspot/HSDB.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java b/agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java
index a5393107a..b1f8d838f 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 9ae362baa..97726c4e6 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'");