8226608: Hide the onjcmd option from the help output
authorrschmelter
Thu, 27 Jun 2019 00:51:04 -0700
changeset 55516 f3b62797e2d0
parent 55515 4c52949a3487
child 55517 f6d6fd388315
8226608: Hide the onjcmd option from the help output Reviewed-by: sspitsyn, clanger
src/hotspot/share/services/diagnosticCommand.cpp
src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c
--- a/src/hotspot/share/services/diagnosticCommand.cpp	Thu Jun 27 03:13:54 2019 +0200
+++ b/src/hotspot/share/services/diagnosticCommand.cpp	Thu Jun 27 00:51:04 2019 -0700
@@ -129,7 +129,7 @@
 
   // Debug on cmd (only makes sense with JVMTI since the agentlib needs it).
 #if INCLUDE_JVMTI
-  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<DebugOnCmdStartDCmd>(full_export, true, false));
+  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<DebugOnCmdStartDCmd>(full_export, true, true));
 #endif // INCLUDE_JVMTI
 
 }
--- a/src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c	Thu Jun 27 03:13:54 2019 +0200
+++ b/src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c	Thu Jun 27 00:51:04 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -873,7 +873,6 @@
  "launch=<command line>            run debugger on event             none\n"
  "onthrow=<exception name>         debug on throw                    none\n"
  "onuncaught=y|n                   debug on any uncaught?            n\n"
- "onjcmd=y|n                       start debug via jcmd?             n\n"
  "timeout=<timeout value>          for listen/attach in milliseconds n\n"
  "mutf8=y|n                        output modified utf-8             n\n"
  "quiet=y|n                        control over terminal messages    n\n"));