SA: debugd options should follow jhsdb style

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 13
    • Component/s: hotspot
    • None
    • behavioral
    • low
    • `jhsdb debugd` user(s) have to change command line options. But they can be migrated completely.
    • add/remove/modify command line option
    • JDK

      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 message
      

      jhsdb 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

            Assignee:
            Yasumasa Suenaga
            Reporter:
            Yasumasa Suenaga
            David Holmes, Serguei Spitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: