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

JDI: provide arguments when no debug attributes present

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.3.0
    • core-svc
    • b39
    • generic
    • generic



      Name: bsC130419 Date: 08/10/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)



      Request for argument LocalVariables when no debug attributes present.

      Currently, the JDI specification and implementaion of
      com.sun.jdi.StackFrame.visibleVariables() throws an AbsentInformationException
      if there is no line number information for a method. However, it would seem
      that it should be possible to return LocalVariable objects for the method
      arguments in this case, as the number and types of the parameter variables is
      given by the type info in the method header; the offsets of the parameter
      variables is predictable and can be readily calculated from info in the method
      header. Variable names may have to be invented - i.e. "arg1", etc.

      It would be advantageous to display arguments & their values in a debugger even
      when debug attributes are not present.
      (Review ID: 129819)
      ======================================================================

            jjh James Holmlund (Inactive)
            bstrathesunw Bill Strathearn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: