Contents Previous Next

Chapter   12

Vendor Specific Command Set


This command set is numbered (128) to match the equivalent JDWP command set.

 Handshake Command (1)

Used to initialize communication between the Debug Agent (DA) and the KVM. The KVM determines if the DA is the correct one for this particular KVM. If so, then the KVM replies with a 32-bit bitfield that indicates any optional JDWP commands that the KVM is able to parse directly (meaning that the DA can pass these JDWP commands directly to the KVM without parsing/managing them). Whether out data or reply, if the ID string is the NULL string (its length is 0) then the receiver of the ID string ignores it.

Out Data
TABLE 43  –  Structure of Out Data for Handshake Command
String
Identifier
Vendor specific ID string
byte
Major Version
The major version of the Debug Agent.
Byte
Minor Version
The minor version of the Debug Agent.

Reply Data
TABLE 44  –  Structure of Reply Data for Handshake Command
String
Identifier
Vendor specific ID string.
int
Optional commands
32-bit bitfield that describes the optional JDWP commands that the KVM supports. This set of bits is in 'Network Order' (Big Endian) format.
Bit 0
VM Init event
KVM supports/sends VM_INIT event.
Bit 1
VM Death
KVM supports/sends VM_DEATH event
Bit 2
Method Entry Event
KVM supports/sends METHOD_ENTRY event
Bit 3
Method Exit Event
KVM supports/sends METHOD_EXIT event
Bit 4
Exception Event
KVM supports/sends EXCEPTION event
Bit 5
Exception Catch Event
KVM supports/sends EXCEPTION_CATCH event
Bit 6
Class Load Event
KVM supports/sends CLASS_LOAD event
Bit 7
Class unload Event
KVM supports/sends CLASS_UNLOAD event
Bit 8
Single Step Event
KVM supports/sends SINGLE_STEP event
Bit 9
Thread start Event
KVM supports/sends THREAD_START event
Bit 10
Thread death Event
KVM supports/sends THREAD_DEATH event
Bit 11
Frame pop Event
KVM supports/sends FRAME_POP event
Bit 12
Field Access Event
KVM supports/sends FIELD_ACCESS event
Bit 13
Field modification Event
KVM supports/sends FIELD_MODIFICATION event
Bit 14
Event management
If set then the KVM keeps a list of events that have been set by the debugger and does not need the debug agent to return the breakpoint opcode after a breakpoint event.

 


Contents Previous Next KDWP Specification
KVM Debug Wire Protocol, 1.0