Contents Previous Next

Chapter   5

ObjectReference Command Set


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

 ReferenceType Command (1)

Returns the runtime type of the object. The runtime type is a class or an array.

Out Data
TABLE 10  –  Structure of Out Data for ReferenceType Command
objectID
object
The object ID 

Reply Data
TABLE 11  –  Structure of Reply Data for ReferenceType Command
byte
refTypeTag
Kind of following reference type.  
referenceTypeID
typeID
The runtime reference type. 

 GetValues Command (2)

Returns the value of one or more instance fields. Each field must be a member of the object's type or one of its superclasses, superinterfaces, or implemented interfaces. Access control is not enforced. For example, the values of private fields can be obtained.

Out Data
TABLE 12  –  Structure of Out Data for GetValues Command
objectID
object
The object ID 
int
fields
The number of values to get 
Repeated fields times:
fieldID
fieldID
Field to get. 

Reply Data
TABLE 13  –  Structure of Reply Data for GetValues Command
int
values
The number of values returned 
Repeated values times:
value
value
The field value 

 SetValues Command (3)

Sets the value of one or more instance fields. Each field must be a member of the object's type or one of its superclasses, superinterfaces, or implemented interfaces. Access control is not enforced; for example, the values of private fields can be set. For primitive values, the value's type must match the field's type exactly. For object values, there must be a widening reference conversion from the value's type to the field's type and the field's type must be loaded.

Out Data
TABLE 14  –  Structure of Out Data for SetValues Command
objectID
object
The object ID 
int
values
The number of fields to set. 
Repeated values times:
fieldID
fieldID
Field to set. 
untagged-value
value
Value to put in the field. 

Reply Data

(None)

 


Contents Previous Next KDWP Specification
KVM Debug Wire Protocol, 1.0