示例#1
0
        protected BaseDebugStackFrame(DebugDocumentContext.Factory debugDocumentContextFactory,
                                      IChildrenProviderFactory childrenProviderFactory,
                                      DebugCodeContext.Factory debugCodeContextFactory,
                                      CreateDebugExpressionDelegate createExpressionDelegate,
                                      IVariableInformationFactory varInfoFactory,
                                      IVariableInformationEnumFactory varInfoEnumFactory,
                                      AD7FrameInfoCreator ad7FrameInfoCreator,
                                      IRegisterSetsBuilder registerSetsBuilder,
                                      IDebugEngineHandler debugEngineHandler, RemoteFrame frame,
                                      IDebugThread2 thread, IGgpDebugProgram debugProgram,
                                      ITaskExecutor taskExecutor)
        {
            this.debugDocumentContextFactory = debugDocumentContextFactory;
            this._childrenProviderFactory    = childrenProviderFactory;
            this.debugCodeContextFactory     = debugCodeContextFactory;
            this.createExpressionDelegate    = createExpressionDelegate;
            this.varInfoFactory      = varInfoFactory;
            this.varInfoEnumFactory  = varInfoEnumFactory;
            this.ad7FrameInfoCreator = ad7FrameInfoCreator;
            this.registerSetsBuilder = registerSetsBuilder;
            this.debugEngineHandler  = debugEngineHandler;
            this.debugProgram        = debugProgram;
            lldbFrame          = frame;
            this.thread        = thread;
            this._taskExecutor = taskExecutor;

            documentContext = new Lazy <IDebugDocumentContext2>(() => CreateDocumentContext());
            codeContext     = new Lazy <IDebugCodeContext2>(() => CreateCodeContext());
        }
示例#2
0
        public void SetUp()
        {
            _completionHandler       = Substitute.For <IAsyncDebugGetPropertiesCompletionHandler>();
            _childrenProvider        = Substitute.For <IChildrenProvider>();
            _childrenProviderFactory = Substitute.For <IChildrenProviderFactory>();

            _childrenProviderFactory.Create(Arg.Any <IChildAdapter>(),
                                            Arg.Any <enum_DEBUGPROP_INFO_FLAGS>(), Arg.Any <uint>())
            .Returns(_childrenProvider);

            _taskExecutor           = Substitute.ForPartsOf <FakeTaskExecutor>();
            _frameVariablesProvider = Substitute.For <FrameVariablesProvider>(null, null, null);

            _getPropertiesOp = new AsyncGetRootPropertiesOperation(_frameVariablesProvider,
                                                                   _taskExecutor,
                                                                   _completionHandler,
                                                                   _childrenProviderFactory,
                                                                   enum_DEBUGPROP_INFO_FLAGS
                                                                   .DEBUGPROP_INFO_FULLNAME, 10,
                                                                   new Guid(
                                                                       "12345678-1234-1234-1234-123456789123"));

            var varibleStub = Substitute.For <IVariableInformation>();

            _frameVariablesProvider.Get(Arg.Any <Guid>())
            .Returns(new List <IVariableInformation>
            {
                varibleStub
            });
        }
示例#3
0
 DebugProperty(ITaskExecutor taskExecutor, IChildrenProviderFactory childrenProviderFactory,
               IVariableInformationEnumFactory varInfoEnumFactory,
               IVariableInformation varInfo, DebugCodeContext.Factory codeContextFactory,
               VsExpressionCreator vsExpressionCreator) : base(
         taskExecutor, childrenProviderFactory, varInfoEnumFactory, varInfo, codeContextFactory,
         vsExpressionCreator)
 {
 }
示例#4
0
 public Factory(IVariableInformationEnumFactory varInfoEnumFactory,
                IChildrenProviderFactory childrenProviderFactory,
                DebugCodeContext.Factory codeContextFactory,
                VsExpressionCreator vsExpressionCreator, ITaskExecutor taskExecutor)
 {
     _varInfoEnumFactory      = varInfoEnumFactory;
     _childrenProviderFactory = childrenProviderFactory;
     _codeContextFactory      = codeContextFactory;
     _vsExpressionCreator     = vsExpressionCreator;
     _taskExecutor            = taskExecutor;
 }
示例#5
0
 public AsyncDebugRootPropertyInfoProvider(FrameVariablesProvider frameVariablesProvider,
                                           ITaskExecutor taskExecutor,
                                           IChildrenProviderFactory childrenProviderFactory,
                                           enum_DEBUGPROP_INFO_FLAGS fields, uint radix,
                                           Guid guidFilter)
 {
     _frameVariablesProvider  = frameVariablesProvider;
     _taskExecutor            = taskExecutor;
     _childrenProviderFactory = childrenProviderFactory;
     _fields     = fields;
     _radix      = radix;
     _guidFilter = guidFilter;
 }
示例#6
0
 protected GgpCommonDebugProperty(ITaskExecutor taskExecutor,
                                  IChildrenProviderFactory childrenProviderFactory,
                                  IVariableInformationEnumFactory varInfoEnumFactory,
                                  IVariableInformation varInfo,
                                  DebugCodeContext.Factory codeContextFactory,
                                  VsExpressionCreator vsExpressionCreator)
 {
     _taskExecutor            = taskExecutor;
     _childrenProviderFactory = childrenProviderFactory;
     _varInfoEnumFactory      = varInfoEnumFactory;
     _varInfo             = varInfo;
     _codeContextFactory  = codeContextFactory;
     _vsExpressionCreator = vsExpressionCreator;
 }
示例#7
0
 public AsyncGetRootPropertiesOperation(FrameVariablesProvider frameVariablesProvider,
                                        ITaskExecutor taskExecutor,
                                        IAsyncDebugGetPropertiesCompletionHandler
                                        completionHandler,
                                        IChildrenProviderFactory childrenProviderFactory,
                                        enum_DEBUGPROP_INFO_FLAGS fields, uint radix,
                                        Guid guidFilter)
 {
     _frameVariablesProvider  = frameVariablesProvider;
     _taskExecutor            = taskExecutor;
     _completionHandler       = completionHandler;
     _childrenProviderFactory = childrenProviderFactory;
     _fields     = fields;
     _radix      = radix;
     _guidFilter = guidFilter;
 }
示例#8
0
 public Factory(DebugDocumentContext.Factory debugDocumentContextFactory,
                IChildrenProviderFactory childrenProviderFactory,
                DebugCodeContext.Factory debugCodeContextFactory,
                CreateDebugExpressionDelegate createExpressionDelegate,
                IVariableInformationFactory varInfoFactory,
                IVariableInformationEnumFactory varInfoEnumFactory,
                RegisterSetsBuilder.Factory registerSetsBuilderFactory,
                ITaskExecutor taskExecutor)
 {
     this.debugDocumentContextFactory = debugDocumentContextFactory;
     this.childrenProviderFactory     = childrenProviderFactory;
     this.debugCodeContextFactory     = debugCodeContextFactory;
     this.createExpressionDelegate    = createExpressionDelegate;
     this.varInfoFactory             = varInfoFactory;
     this.varInfoEnumFactory         = varInfoEnumFactory;
     this.registerSetsBuilderFactory = registerSetsBuilderFactory;
     this.taskExecutor = taskExecutor;
 }
示例#9
0
 DebugStackFrameAsync(DebugDocumentContext.Factory debugDocumentContextFactory,
                      IChildrenProviderFactory childrenProviderFactory,
                      DebugCodeContext.Factory debugCodeContextFactory,
                      CreateDebugExpressionDelegate createExpressionDelegate,
                      IVariableInformationFactory varInfoFactory,
                      IVariableInformationEnumFactory varInfoEnumFactory,
                      AD7FrameInfoCreator ad7FrameInfoCreator,
                      IRegisterSetsBuilder registerSetsBuilder,
                      IDebugEngineHandler debugEngineHandler, RemoteFrame frame,
                      IDebugThread2 thread, IGgpDebugProgram debugProgram,
                      ITaskExecutor taskExecutor) : base(debugDocumentContextFactory,
                                                         childrenProviderFactory,
                                                         debugCodeContextFactory,
                                                         createExpressionDelegate,
                                                         varInfoFactory, varInfoEnumFactory,
                                                         ad7FrameInfoCreator,
                                                         registerSetsBuilder,
                                                         debugEngineHandler, frame, thread,
                                                         debugProgram, taskExecutor)
 {
 }