Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How can the VM notify JDT that a class has been unloaded?(JDWP CLASS_UNLOAD event sent by my Java VM does not update breakpoints in UI)
How can the VM notify JDT that a class has been unloaded? [message #533172] Wed, 12 May 2010 09:36
Eclipse UserFriend
Hi,
I'm debugging a proprietary Java VM with Eclipse. The VM supports classes to be unloaded by the system class loader. If a class has been unloaded, the VM sends a JDWP event "CLASS_UNLOAD" to Eclipse.
This is the JDWP log:
From VM
Packet ID:                            0x00000003
Length:                               49
Flags:                                0x00 (COMMAND)
Command set:                          0x40 (64)
Command:                              0x64 (100) (EVENT - COMPOSITE)
Suspend policy:                       0x00 (NONE)
Events count:                         0x00000001 (1)
Event kind:                           0x09 (CLASS_UNLOAD)
Request id:                           0x00000001 (1)
Type signature:                       "Lcom/test/MyClass;"

From Debugger (Eclipse JDT)
Packet ID:                            0x00000030
Length:                               39
Flags:                                0x00 (COMMAND)
Command set:                          0x01 (1)
Command:                              0x02 (2) (VIRTUAL_MACHINE - CLASSES_BY_SIGNATURE)
Class signature:                      "Lcom/test/MyClass;"

From VM
Packet ID:                            0x00000030
Length:                               15
Flags:                                0x80 (REPLY to VIRTUAL_MACHINE - CLASSES_BY_SIGNATURE)
Error:                                0x00000000
Classes count:                        0x00000000 (0)

But after this event, breakpoints in that class will still be shown as "installed" in the Java editor and the Breakpoint view, although the class is already unloaded. Is there any event that the VM could send to the JDT so that the Breakpoints in the UI will be updated?
Previous Topic:One jsp web page is displayed but not the other. How to debug
Next Topic:Annotation processing (Java 1.6) Eclipse Galileo
Goto Forum:
  


Current Time: Sun Mar 16 00:00:22 EDT 2025

Powered by FUDForum. Page generated in 0.45556 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top