예제 #1
0
        /** Create a Value to use it in a Function Evaluation. */
        public CorValue CreateValue(CorElementType type, CorClass managedClass)
        {
            ICorDebugValue v = null;

            m_eval.CreateValue(type, managedClass == null ? null : managedClass.m_class, out v);
            return((v == null) ? null : new CorValue(v));
        }
예제 #2
0
        public CorValue GetFieldValue(CorClass managedClass, int fieldToken)
        {
            ICorDebugValue val;

            m_objVal.GetFieldValue(managedClass.m_class, (uint)fieldToken, out val);
            return(new CorValue(val));
        }
예제 #3
0
        public void NewArray(CorElementType type, CorClass managedClass, int rank,
                             int dimensions, int lowBounds)
        {
            uint udims      = (uint)dimensions;
            uint ulowBounds = (uint)lowBounds;

            m_eval.NewArray(type, managedClass.m_class, (uint)rank, ref udims, ref ulowBounds);
        }
예제 #4
0
        public void NewParameterizedObjectNoConstructor(CorClass managedClass, CorType[] argumentTypes)
        {
            ICorDebugType[] types       = null;
            int             typesLength = 0;
            ICorDebugEval2  eval2       = (ICorDebugEval2)m_eval;

            if (argumentTypes != null)
            {
                types = new ICorDebugType[argumentTypes.Length];
                for (int i = 0; i < argumentTypes.Length; i++)
                {
                    types[i] = argumentTypes[i].m_type;
                }
                typesLength = types.Length;
            }
            eval2.NewParameterizedObjectNoConstructor(managedClass.m_class, (uint)typesLength, types);
        }
예제 #5
0
 public CorClassEventArgs(CorAppDomain appDomain, CorClass managedClass,
     ManagedCallbackType callbackType)
     : base(appDomain, callbackType)
 {
     m_class = managedClass;
 }
예제 #6
0
 public CorClassEventArgs(CorAppDomain appDomain, CorClass managedClass)
     : base(appDomain)
 {
     m_class = managedClass;
 }
        // enable or disable custom notifications of a given type
        // Arguments: c - class for the type to be enabled/disabled
        //            value - true to enable, false to disable
        public void SetEnableCustomNotification(CorClass c, bool value)
        {
            ICorDebugProcess3 p3 = (ICorDebugProcess3)_p();

            p3.SetEnableCustomNotification(c.Raw, value ? 1 : 0);
        }
예제 #8
0
 /** Create an object w/o invoking its constructor. */
 public void NewObjectNoContstructor(CorClass c)
 {
     m_eval.NewObjectNoConstructor(c.m_class);
 }
예제 #9
0
파일: Process.cs 프로젝트: xsword911/Cosmos
        // enable or disable custom notifications of a given type
        // Arguments: c - class for the type to be enabled/disabled
        //            value - true to enable, false to disable
        public void SetEnableCustomNotification(CorClass c, bool value)
        {
            ICorDebugProcess3 p3 = (ICorDebugProcess3)_p();

            p3.SetEnableCustomNotification(c.Raw, value ? 1 : 0);
        }
예제 #10
0
파일: Value.cs 프로젝트: Gravecorp/ipydbg
 public CorValue GetFieldValue(CorClass managedClass,int fieldToken)
 {
     ICorDebugValue val;
     m_objVal.GetFieldValue(managedClass.m_class,(uint)fieldToken,out val);
     return new CorValue(val);
 }
예제 #11
0
파일: StopReason.cs 프로젝트: Orvid/Cosmos
 /// <summary>
 /// Create a new instance of the ClassLoadedStopReason class.
 /// </summary>
 /// <param name="managedClass">The class that has been loaded.</param>
 public ClassLoadedStopReason(CorClass managedClass)
 {
     Debug.Assert(managedClass != null);
     m_class = managedClass;
 }
예제 #12
0
파일: Eval.cs 프로젝트: jredville/ipydbg
 public void NewParameterizedObjectNoConstructor(CorClass managedClass, CorType[] argumentTypes)
 {
     ICorDebugType[] types = null;
     int typesLength=0;
     ICorDebugEval2 eval2 = (ICorDebugEval2) m_eval;
     if (argumentTypes != null)
     {
         types = new ICorDebugType[argumentTypes.Length];
         for (int i = 0; i < argumentTypes.Length; i++)
             types[i] = argumentTypes[i].m_type;
         typesLength = types.Length;
     }
     eval2.NewParameterizedObjectNoConstructor(managedClass.m_class, (uint)typesLength, types);
 }
예제 #13
0
파일: Eval.cs 프로젝트: jredville/ipydbg
 /** Create an object w/o invoking its constructor. */
 public void NewObjectNoContstructor(CorClass c)
 {
     m_eval.NewObjectNoConstructor (c.m_class);
 }
예제 #14
0
파일: Eval.cs 프로젝트: jredville/ipydbg
 public void NewArray(CorElementType type, CorClass managedClass, int rank, 
                       int dimensions, int lowBounds)
 {
     uint udims = (uint)dimensions;
     uint ulowBounds = (uint)lowBounds;
     m_eval.NewArray (type, managedClass.m_class, (uint)rank, ref udims, ref ulowBounds);
 }
예제 #15
0
파일: Eval.cs 프로젝트: jredville/ipydbg
 /** Create a Value to use it in a Function Evaluation. */
 public CorValue CreateValue(CorElementType type, CorClass managedClass)
 {
     ICorDebugValue v = null;
     m_eval.CreateValue (type, managedClass==null?null:managedClass.m_class, out v);
     return (v==null)?null:new CorValue (v);
 }