示例#1
0
 public void Reload()
 {
     if (loader != null)
     {
         // Obsolete value, get a new one
         CorDebugValue v = loader();
         version = MicroFrameworkDebuggerSession.EvaluationTimestamp;
         if (v != null)
         {
             val = v;
         }
     }
 }
示例#2
0
文件: threads.cs 项目: zha0/DbgShell
        private ClrValue[] GetValueList(ICorDebugValueEnum valueEnum)
        {
            uint count;

            valueEnum.GetCount(out count);

            ClrValue[]       result = new ClrValue[count];
            ICorDebugValue[] tmp    = new ICorDebugValue[1];
            uint             fetched;
            int i = 0;

            while (i < result.Length && valueEnum.Next(1, tmp, out fetched) >= 0 && fetched == 1)
            {
                result[i] = new CorDebugValue(_runtime, tmp[0]);
                i++;
            }

            return(result);
        }
示例#3
0
 public CorDebugValue RuntimeInvoke(CorEvaluationContext corEvaluationContext, CorDebugFunction function, CorDebugType[] typeArgs, CorDebugValue thisObj, CorDebugValue[] arguments)
 {
     return(null);
 }
 public CorDebugValue RuntimeInvoke(CorDebugFunction function, CorDebugType[] typeArgs, CorDebugValue thisObj, CorDebugValue[] arguments)
 {
     return(Session.RuntimeInvoke(this, function, typeArgs, thisObj, arguments));
 }
示例#5
0
 public CorValRef(ValueLoader loader)
 {
     this.val     = loader();
     this.loader  = loader;
     this.version = MicroFrameworkDebuggerSession.EvaluationTimestamp;
 }
示例#6
0
 public CorValRef(CorDebugValue val)
 {
     this.val     = val;
     this.version = MicroFrameworkDebuggerSession.EvaluationTimestamp;
 }