Contents Previous Next

Chapter   10

StackFrame Command Set


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

 GetValues Command (1)

Returns the value of one or more local variables in a given frame. Each variable must be visible at the current frame code index. Even if local variable information is not available, values can be retrieved if the front-end is able to determine the correct local variable index. (Typically, this index can be determined for method arguments from the method signature without access to the local variable table information.)

Out Data
TABLE 38  –  Structure of Out Data for GetValues Command
threadID
threadObject
The frame's thread.  
frameID
frame
The frame ID.  
int
slots
The number of values to get.  
Repeated slots times:
int
slot
The local variable's index in the frame.  
byte
sigbyte
A tag identifying the type of the variable  

Reply Data
TABLE 39  –  Structure of Reply Data for GetValues Command
int
values
The number of values retrieved.  
Repeated values times:
value
slotValue
The value of the local variable.  

 SetValues Command (2)

Sets the value of one or more local variables. Each variable must be visible at the current frame code index. For primitive values, the value's type must match the variable's type exactly. For object values, there must be a widening reference conversion from the value's type to the variable's type and the variable's type must be loaded.

Even if local variable information is not available, values can be set, if the front-end is able to determine the correct local variable index. (Typically, this index can be determined for method arguments from the method signature without access to the local variable table information.)

Out Data
TABLE 40  –  Structure of Out Data for SetValues Command
threadID
threadObject
The frame's thread.  
frameID
frame
The frame ID.  
int
slotValues
The number of values to set.  
Repeated slotValues times:
int
slot
The slot ID.  
value
slotValue
The value to set.  

Reply Data

(None)

 


Contents Previous Next KDWP Specification
KVM Debug Wire Protocol, 1.0