Summary
Make options for debugd mode of jhsdb conform to other jhsdb modes.
Problem
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 messagejhsdb uses SALauncher to start SA tools, and new options were introduced by JDK-8059038. debugd is not compliant with this.
Solution
We can replace all options in debugd with the new jhsdb style.
Specification
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>For example:
jhsdb debugd 1234
becomes
jhsdb debugd --pid 1234
and
jhsdb debugd /usr/bin/java /tmp/core.1234
becomes
jhsdb debugd --exe /usr/bin/java --core /tmp/core.1234
- csr of
- 
                    JDK-8223665 SA: debugd options should follow jhsdb style -           
- Resolved
 
-         
- relates to
- 
                    JDK-8223814 SA: jhsdb common help needs to be more detailed -           
- Resolved
 
-