JDK-4162352 : JVMDI spec: accessing return value of a method on the stack
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 1.2.0,1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic,windows_95
  • CPU: generic,x86
  • Submitted: 1998-07-31
  • Updated: 2004-08-06
  • Resolved: 2004-08-06
Related Reports
Relates :  
Relates :  
Description

Name: clC74495			Date: 07/31/98


Carlos.Lucasius@Canada (July 31, 1998):

In his bug report (see below), the submitter is asking many questions.
He is not a licensee, so I don't believe he is entitled to this kind of
support.  Anyway, this is what his RFE comes down to:

"I am interested in getting at the return value of a method once a
 Frame_Pop event has been detected. At the moment in JVMDI, once
 a Frame_Pop event has been detected, there seems to be no way of
 looking at the return value of the method that cause the event in the
 first place."

--------

BUG REPORT FOLLOWS:

Hi there,

Another JVMDI question, in the jvmdi.h file 
distributed with JDK 1.2 beta 4, I found the 
following quote:

/*
 *  Operand Stack
 *
 *  operations on operand stack to be added later **
 */

Now in the documentation for JBug in the status 
section for JVMDI (URL: 'http://developer.java.sun.com/developer/earlyAccess/jbug/doc/jvmdi-status.html' )
it mentions that the implementation and interface are complete and fairly stable,
does this mean that the operand stack functions have been 
disgarded or is there still work being done on them, and 
if there is still work being done is there any idea 
in which release/beta version it will be included?

My primary reason for asking is that I am interested in
getting at the return value of a method once a Frame_Pop 
event has been detected. At the moment in JVMDI, once a 
Frame_Pop event has been detected, there seems to be 
no way of looking at the return value of the method 
that cause the event in the first place.

Is there a current workaround to this or are there plans 
to include functionality to this effect in later 
versions, and if not, can I request that it be 
considered for an extension to JVMDI.

Thanks alot once again for all your help.
(Review ID: 36159)
======================================================================

Comments
EVALUATION ###@###.### 2004-08-06 This won't be fixed because JVMDI is deprecated. However, this has been added to JVMTI 4954587 MethodExit event - return_value parameter not provided and will be added to the other JPDA layers - JDWP and JDI: 4195445 JDWP, JDI: Add return value to Method Exit Event
13-08-2004

PUBLIC COMMENTS .
13-08-2004