Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8223666

SA: debugd options should follow jhsdb style

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 13
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      low
    • 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
    • Scope:
      JDK

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: