public Value GetValue (LocalVariable var) {
if (var == null)
throw new ArgumentNullException ("var");
if (var.Method != Method)
throw new ArgumentException ("Local variable doesn't belong to this frame's method.");
// FIXME: Liveness
// FIXME: Check for return value
// FIXME: Allow returning the frame return value if possible
return vm.DecodeValue (vm.conn.StackFrame_GetValues (thread.Id, Id, new int [] { var.GetValueIndex } )[0]);
}