On Wed, 3 Mar 2021 02:29:18 GMT, Yasumasa Suenaga <[email protected]> wrote:
>> `attach` command on CLHSDB supports to attach live process (PID) and
>> coredump, but it cannot connect to debug server. CLHSDB does not have a
>> command to connect to debug server.
>>
>> Other jhsdb commands (jstack, jmap, etc...) can connect debug server via
>> `--connect` option, so CLHSDB should connect to it.
>>
>> After this change, you can connect to debug server with 'connect <hostname>'.
>
> Yasumasa Suenaga has updated the pull request incrementally with one
> additional commit since the last revision:
>
> Fix comments
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/CLHSDB.java line 236:
> 234: catch (DebuggerException e) {
> 235: final String errMsg = formatMessage(e.getMessage(), 80);
> 236: System.err.println("Unable to connect to machine \"" +
> debugServerName + "\":\n\n" + errMsg);
"machine" -> "debug server"
-------------
PR: https://git.openjdk.java.net/jdk/pull/2773