Example #1
0
        public static RuntimeValue InvokeMethod(RuntimeThread thread, RuntimeFunction function, params RuntimeValue[] arguments)
        {
            var evaluation = thread.CreateEvaluation();

            evaluation.Call(function, arguments);
            if (!evaluation.WaitForResult(3000))
            {
                return(null);
            }
            return(evaluation.Result);
        }
        internal RuntimeFrame(RuntimeThread thread, ICorDebugFrame comFrame)
        {
            _thread = thread; 
            _comFrame = comFrame;

            if (!IsExternal)
            {
                ICorDebugFunction comFunction;
                comFrame.GetFunction(out comFunction);
                ICorDebugModule comModule;
                comFunction.GetModule(out comModule);

                var module = Session.FindModule(x => x.ComModule == comModule);
                _function = module.GetFunction(comFunction);
            }
        }
Example #3
0
        internal RuntimeFrame(RuntimeThread thread, ICorDebugFrame comFrame)
        {
            _thread   = thread;
            _comFrame = comFrame;

            if (!IsExternal)
            {
                ICorDebugFunction comFunction;
                comFrame.GetFunction(out comFunction);
                ICorDebugModule comModule;
                comFunction.GetModule(out comModule);

                var module = Session.FindModule(x => x.ComModule == comModule);
                _function = module.GetFunction(comFunction);
            }
        }
 internal RuntimeFunctionCode(RuntimeFunction function, ICorDebugCode comCode)
 {
     this._function = function;
     this._comCode  = comCode;
 }
 internal RuntimeFunction GetFunction(ICorDebugFunction comFunction)
 {
     RuntimeFunction function;
     if (!_cachedFunctions.TryGetValue(comFunction, out function))
     {
         _cachedFunctions.Add(comFunction, function = new RuntimeFunction(this, comFunction));
     }
     return function;
 }
 internal RuntimeFunctionCode(RuntimeFunction function, ICorDebugCode comCode)
 {
     this._function = function;
     this._comCode = comCode;
     
 }
 internal FunctionBreakpoint(RuntimeFunction function, ICorDebugFunctionBreakpoint comBreakpoint)
     : base(comBreakpoint)
 {
     _comBreakpoint = comBreakpoint;
     _function = function;
 }
 public static RuntimeValue InvokeMethod(RuntimeThread thread, RuntimeFunction function, params RuntimeValue[] arguments)
 {
     var evaluation = thread.CreateEvaluation();
     evaluation.Call(function, arguments);
     if (!evaluation.WaitForResult(3000))
         return null;
     return evaluation.Result;
 }
 public void CreateObject(RuntimeFunction constructor, params RuntimeValue[] arguments)
 {
     _manualEvaluationCompleted.Reset();
     _comEvaluation.NewObject(constructor.ComFunction, (uint)arguments.Length, arguments.GetComValues().ToArray());
 }
 public void Call(RuntimeFunction function, params RuntimeValue[] arguments)
 {
     Call(function.ComFunction, arguments.GetComValues().ToArray());
 }
 internal RuntimeFrame(RuntimeFunction function, RuntimeThread thread, ICorDebugFrame comFrame)
 {
     _thread = thread;
     _function = function;
     _comFrame = comFrame;
 }
Example #12
0
 public void CreateObject(RuntimeFunction constructor, params RuntimeValue[] arguments)
 {
     _manualEvaluationCompleted.Reset();
     _comEvaluation.NewObject(constructor.ComFunction, (uint)arguments.Length, arguments.GetComValues().ToArray());
 }
Example #13
0
 public void Call(RuntimeFunction function, params RuntimeValue[] arguments)
 {
     Call(function.ComFunction, arguments.GetComValues().ToArray());
 }
Example #14
0
 internal RuntimeFrame(RuntimeFunction function, RuntimeThread thread, ICorDebugFrame comFrame)
 {
     _thread   = thread;
     _function = function;
     _comFrame = comFrame;
 }
Example #15
0
 internal FunctionBreakpoint(RuntimeFunction function, ICorDebugFunctionBreakpoint comBreakpoint)
     : base(comBreakpoint)
 {
     _comBreakpoint = comBreakpoint;
     _function      = function;
 }