Exemplo n.º 1
0
 ICorDebugValue GetLocalVariableCorValue(ISymUnmanagedVariable symVar)
 {
     try {
         return(CorILFrame.GetLocalVariable((uint)symVar.AddressField1));
     } catch (COMException e) {
         if ((uint)e.ErrorCode == 0x80131304)
         {
             throw new GetValueException("Unavailable in optimized code");
         }
         throw;
     }
 }
Exemplo n.º 2
0
        ICorDebugValue GetCorValueOfLocalVariable(ISymUnmanagedVariable symVar)
        {
            if (this.HasExpired)
            {
                throw new CannotGetValueException("FUNCTION_HAS_EXPIRED");
            }

            try {
                return(CorILFrame.GetLocalVariable((uint)symVar.AddressField1));
            } catch (COMException e) {
                if ((uint)e.ErrorCode == 0x80131304)
                {
                    throw new CannotGetValueException("Unavailable in optimized code");
                }
                throw;
            }
        }