/** Returns this variable's current Value. */
 @Override
 protected Value retrieveValue() throws DebugException {
   synchronized (fStackFrame.getThread()) {
     if (getStackFrame().isSuspended()) {
       return getStackFrame().getUnderlyingStackFrame().getValue(fLocal);
     }
   }
   // bug 6518
   return getLastKnownValue();
 }
 /** Constructs a local variable for the given local in a stack frame. */
 public JDILocalVariable(JDIStackFrame frame, LocalVariable local) {
   super((JDIDebugTarget) frame.getDebugTarget());
   fStackFrame = frame;
   fLocal = local;
 }