How can the VM notify JDT that a class has been unloaded? [message #533172] |
Wed, 12 May 2010 09:36 |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.45556 seconds