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

jdb(1) should clarify -J and point to the run command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0u2
    • docs
    • None
    • beta2
    • generic
    • solaris_10
    • Verified

      bustos 2005-07-20

      Under OPTIONS, jdb(1) says

           Joption Pass option to the Java virtual
                                   machine, where option is one of the
                                   options described on the man page
                                   for the java application launcher,
                                   java (1). For example, -J-Xms48m
                                   sets the startup memory to 48 mega-
                                   bytes. It is a common convention for
                                   -J to pass options to the underlying
                                   virtual machine.

      First of all, a dash needs to be added before the J. Secondly,
      I tried to use this to enable assertions in the program I was
      trying to debug. "jdb -J-ea Program" started ok, but the
      assertions were not enabled. The description of -J should be
      clarified to say that the options are for jdb's vm, and that
      options for the program's vm should be supplied in the
      run command. The run command's description should probably be expanded
      to say that it may be used to pass options to the vm. And jdb's help
      message should be updated to show that run takes arguments for the vm.

      ###@###.### 2005-07-21 01:45:42 GMT

            irabinovsunw Isaac Rabinovitch (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: