[RFA] JDWP VMMethod::getVariableTable

Kyle Galloway kgallowa@redhat.com
Thu Feb 22 18:15:00 GMT 2007


This patch implements the JDWP side of LocalVariableTables.  It calls 
JVMTI to get the local variable table, and again to get the size (in 
slots) of the method's arguments.  It then massages the data, frees the 
JVMTI structures, and returns a new 
gnu::classpath::jdwp::util::VariableTable* holding the data.  This is 
then serialized and returned by the JDWP backend.  If the information is 
unavailable, or the method is native, it throws an 
AbsentInformationException indicating this to the JDWP backend.  The 
CHECK_INTERP_CLASS macro ensures that the class of the method is 
interpreted.

Questions/comments/concerns?

Thanks,
Kyle


ChangeLog
    * 
classpath/gnu/classpath/jdwp/exception/AbsentInformationException.java: 
New file.
    * 
classpath/lib/gnu/classpath/jdwp/exception/AbsentInformationException.class: 
Ditto.
    * gnu/classpath/jdwp/exception/AbsentInformationException.h: Ditto.
    * gnu/classpath/jdwp/natVMMethod.cc: Add CHECK_INTERP_CLASS macro.
    (VMMethod::getVariableTable): Implement.
    * sources.am: Regenerated.
    * Makefile.in: Ditto.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getlocalvartable-jdwp.patch
Type: text/x-patch
Size: 8588 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20070222/192a43ef/attachment.bin>


More information about the Java-patches mailing list