[RFA/JDWP] Fix VMVirtualMachine.getAllClassMethods
Kyle Galloway
kgallowa@redhat.com
Thu May 3 18:41:00 GMT 2007
Currently, if the debugger requests the methods for a class that is part
of the class libraries (or other compiled classes), the
_Jv_FindInterpredClass call it makes returns null, this pointer is then
dereferenced causing the communication thread to crash and the VM to
stop responding to debugger commands. This patch fixes this by using
JVMTI to get the class methods, which will work in both cases. This
effectively makes the getAllClassMethods/getClassMethod pair work like
the getFrames/getFrame pair with the single method being used as a
factory to create objects for the other.
ChangeLog
2007-05-03 Kyle Galloway <kgallowa@redhat.com>
* gnu/classpath/jdwp/natVMVirtualMachine.cc (getClassMethod): Change
to use JVMTI.
Questions/comments/concerns?
Thanks,
Kyle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: classmethods.patch
Type: text/x-patch
Size: 1266 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20070503/711b9643/attachment.bin>
More information about the Java-patches
mailing list