Fix Version/s: 13
Compatibility Risk Description:`jhsdb debugd` user(s) have to change command line options. But they can be migrated completely.
Interface Kind:add/remove/modify command line option
Make options for debugd mode of jhsdb conform to other jhsdb modes.
debugd mode of jhsdb was introduced by JDK-8160817. However it uses old-style options as below:
[option] <pid> [server-id] (to connect to a live java process) or [option] <executable> <core> [server-id] (to connect to a core file produced by <executable>) server-id is an optional unique id for this debug server, needed if multiple debug servers are run on the same machine where option includes: -h | -help to print this help message
SALauncher to start SA tools, and new options were introduced by JDK-8059038. debugd is not compliant with this.
We can replace all options in debugd with the new jhsdb style.
The new command line format for
debugd will be as per the help out below:
$ jhsdb --help clhsdb command line debugger hsdb ui debugger debugd --help to get more information jstack --help to get more information jmap --help to get more information jinfo --help to get more information jsnap --help to get more information
$ jhsdb debugd --help --serverid <unique id for this debug server> --exe <executable image name> --core <path to coredump> --pid <pid of process to attach>
jhsdb debugd 1234
jhsdb debugd --pid 1234
jhsdb debugd /usr/bin/java /tmp/core.1234
jhsdb debugd --exe /usr/bin/java --core /tmp/core.1234