Esempio n. 1
0
 public DbgClrTypeTypeInfo(DbgEngDebugger debugger,
                           ClrType clrType,
                           DbgUModeProcess process)
     : base(debugger,
            _CheckClrTypeParamAndGetImageBase(clrType),
            (uint)DbgNativeType.DNTYPE_CLR_TYPE,
            SymTag.ManagedType,
            clrType.Name,
            (ulong)clrType.BaseSize,
            process)
 {
     m_clrType = clrType;
 } // end constructor
Esempio n. 2
0
        } // end _ValidateFieldInfoAndGetName()

        internal DbgFieldInfo(DbgEngDebugger debugger,
                              DbgTypeInfo owningType,
                              Microsoft.Diagnostics.Runtime.Interop.FieldInfo fieldInfo,
                              ulong modBase,
                              DbgUModeProcess process)   // TODO BUGBUG? There is no module base field in 'f'... is it not possible for a field to be of a type from some other module?
            : this(debugger,
                   owningType,
                   _ValidateFieldInfoAndGetName(fieldInfo),
                   fieldInfo.FieldOffset,
                   (fieldInfo.PointerFlag != Microsoft.Diagnostics.Runtime.Interop.PointerFlag.None) &&
                   (fieldInfo.PointerFlag != Microsoft.Diagnostics.Runtime.Interop.PointerFlag.Pointer64),
                   fieldInfo.PointerFlag.HasFlag(Microsoft.Diagnostics.Runtime.Interop.PointerFlag.Pointer64),
                   fieldInfo.IsArray,
                   //fieldInfo.IsStruct,
                   fieldInfo.IsConstant,
                   fieldInfo.IsStatic,
                   fieldInfo.Size,
                   DbgTypeInfo.GetNamedTypeInfo(debugger,
                                                modBase,
                                                fieldInfo.TypeId,
                                                process))
        {
            // nothing
        } // end constructor