Esempio n. 1
0
 internal SbWatchpointImpl(
     GrpcConnection connection, GrpcSbWatchpoint grpcSbWatchpoint) :
     this(connection,
          new SbWatchpointRpcService.SbWatchpointRpcServiceClient(connection.CallInvoker),
          grpcSbWatchpoint)
 {
 }
Esempio n. 2
0
 public RemoteTargetProxy(GrpcConnection connection, GrpcSbTarget grpcSbTarget) : this(
         connection, grpcSbTarget,
         new RemoteTargetRpcService.RemoteTargetRpcServiceClient(connection.CallInvoker),
         new GrpcBreakpointFactory(), new GrpcErrorFactory(), new GrpcProcessFactory(),
         new GrpcModuleFactory(), new GrpcWatchpointFactory(), new GrpcAddressFactory())
 {
 }
Esempio n. 3
0
 internal RemoteFrameProxy(GrpcConnection connection, GrpcSbFrame grpcSbFrame)
     : this(connection, grpcSbFrame,
            new RemoteFrameRpcService.RemoteFrameRpcServiceClient(connection.CallInvoker),
            new GrpcModuleFactory(), new GrpcThreadFactory(), new GrpcValueFactory(),
            new GrpcFunctionFactory(), new GrpcSymbolFactory())
 {
 }
Esempio n. 4
0
 internal RemoteThreadProxy(GrpcConnection connection, GrpcSbThread grpcSbThead)
     : this(connection, grpcSbThead,
            new RemoteThreadRpcService.RemoteThreadRpcServiceClient(connection.CallInvoker),
            new RemoteFrameProxyFactory(), new GrpcProcessFactory(),
            new GrpcErrorFactory(), new GrpcModuleFactory())
 {
 }
Esempio n. 5
0
 // Constructor that can be used by tests to pass in mock objects.
 internal SbPlatformImpl(GrpcConnection connection, GrpcErrorFactory sbErrorFactory,
                         SbPlatformRpcService.SbPlatformRpcServiceClient client)
 {
     this.sbErrorFactory = sbErrorFactory;
     this.client         = client;
     this.connection     = connection;
 }
Esempio n. 6
0
 internal RemoteValueProxy(GrpcConnection connection, GrpcSbValue grpcSbValue)
     : this(connection,
            new RemoteValueRpcServiceClient(connection.CallInvoker), grpcSbValue,
            new GrpcValueFactory(), new GrpcErrorFactory(), new GrpcTypeFactory(),
            new CachedValueFactory())
 {
 }
Esempio n. 7
0
 internal SbCommandReturnObjectImpl(GrpcConnection connection,
                                    GrpcSbCommandReturnObject grpcSbReturnObject)
     : this(connection,
            new SbCommandReturnObjectRpcServiceClient(connection.CallInvoker),
            grpcSbReturnObject,
            new GrpcSbCommandReturnObjectFactory())
 {
 }
Esempio n. 8
0
 public virtual RemoteThread Create(GrpcConnection connection, GrpcSbThread grpcSbThread)
 {
     if (grpcSbThread == null || grpcSbThread.Id == 0)
     {
         return(null);
     }
     return(new RemoteThreadProxy(connection, grpcSbThread));
 }
 internal SbBreakpointLocationImpl(
     GrpcConnection connection, GrpcSbBreakpointLocation grpcSbBreakpointLocation)
     : this(connection,
            new SbBreakpointLocationRpcService.SbBreakpointLocationRpcServiceClient(
                connection.CallInvoker),
            grpcSbBreakpointLocation, new GrpcBreakpointFactory(), new GrpcAddressFactory())
 {
 }
 internal SbCommandInterpreterImpl(GrpcConnection connection,
                                   GrpcSbCommandInterpreter grpcSbInterpreter)
     : this(connection,
            new SbCommandInterpreterRpcServiceClient(connection.CallInvoker),
            grpcSbInterpreter, new GrpcSbCommandInterpreterFactory(),
            new GrpcSbCommandReturnObjectFactory())
 {
 }
Esempio n. 11
0
 public virtual RemoteFrame Create(GrpcConnection connection, GrpcSbFrame grpcSbFrame)
 {
     if (grpcSbFrame == null)
     {
         return(null);
     }
     return(new RemoteFrameProxy(connection, grpcSbFrame));
 }
Esempio n. 12
0
 internal SbProcessImpl(GrpcConnection connection, GrpcSbProcess grpcSbProcess)
     : this(connection, grpcSbProcess,
            new GrpcThreadFactory(),
            new GrpcTargetFactory(),
            new GrpcUnixSignalsFactory(), new GrpcErrorFactory(),
            new SbProcessRpcService.SbProcessRpcServiceClient(connection.CallInvoker))
 {
 }
Esempio n. 13
0
 internal SbWatchpointImpl(
     GrpcConnection connection, SbWatchpointRpcService.SbWatchpointRpcServiceClient client,
     GrpcSbWatchpoint grpcSbWatchpoint)
 {
     this.connection       = connection;
     this.client           = client;
     this.grpcSbWatchpoint = grpcSbWatchpoint;
 }
Esempio n. 14
0
 // Constructor that can be used by tests to pass in mock objects.
 internal SbListenerImpl(
     GrpcConnection connection,
     SbListenerRpcService.SbListenerRpcServiceClient client,
     GrpcEventFactory eventFactory)
 {
     this.connection   = connection;
     this.client       = client;
     this.eventFactory = eventFactory;
 }
Esempio n. 15
0
        public virtual SbPlatform Create(string platformName, GrpcConnection grpcConnection)
        {
            var instance = new SbPlatformImpl(grpcConnection);

            if (instance.Create(platformName))
            {
                return(instance);
            }
            return(null);
        }
Esempio n. 16
0
 internal RemoteBreakpointProxy(
     GrpcConnection connection, RemoteBreakpointRpcServiceClient client,
     GrpcSbBreakpoint grpcSbBreakpoint,
     GrpcBreakpointLocationFactory breakpointLocationFactory)
 {
     this.connection                = connection;
     this.client                    = client;
     this.grpcSbBreakpoint          = grpcSbBreakpoint;
     this.breakpointLocationFactory = breakpointLocationFactory;
 }
Esempio n. 17
0
        public virtual SbListener Create(GrpcConnection connection, string name)
        {
            var instance = new SbListenerImpl(connection);

            if (instance.Create(name))
            {
                return(instance);
            }
            return(null);
        }
Esempio n. 18
0
        internal SbUnixSignalsImpl(GrpcConnection connection, GrpcSbUnixSignals grpcSbUnixSignals)
        {
            this.connection        = connection;
            client                 = new SbUnixSignalsRpcServiceClient(connection.CallInvoker);
            this.grpcSbUnixSignals = grpcSbUnixSignals;

            // Keep a handle to objects we need in the destructor.
            gcHandle = GCHandle.Alloc(
                new Tuple <GrpcConnection, SbUnixSignalsRpcServiceClient, GrpcSbUnixSignals>(
                    connection, client, grpcSbUnixSignals));
        }
Esempio n. 19
0
        internal SbSectionImpl(
            GrpcConnection connection, SbSectionRpcServiceClient client,
            GrpcSbSection grpcSbSection)
        {
            this.connection    = connection;
            this.client        = client;
            this.grpcSbSection = grpcSbSection;

            // Keep a handle to objects we need in the destructor.
            gcHandle = GCHandle.Alloc(Tuple.Create(connection, client, grpcSbSection));
        }
Esempio n. 20
0
 // Constructor that can be used by tests to pass in mock objects.
 internal SbDebuggerImpl(GrpcConnection connection, GrpcTargetFactory sbTargetFactory,
                         GrpcPlatformFactory sbPlatformFactory,
                         GrpcSbCommandInterpreterFactory sbCommandInterpreterFactory,
                         SbDebuggerRpcService.SbDebuggerRpcServiceClient client)
 {
     this.connection                  = connection;
     this.sbTargetFactory             = sbTargetFactory;
     this.sbPlatformFactory           = sbPlatformFactory;
     this.sbCommandInterpreterFactory = sbCommandInterpreterFactory;
     this.client = client;
 }
 internal SbBreakpointLocationImpl(
     GrpcConnection connection,
     SbBreakpointLocationRpcService.SbBreakpointLocationRpcServiceClient client,
     GrpcSbBreakpointLocation grpcSbBreakpointLocation,
     GrpcBreakpointFactory breakpointFactory, GrpcAddressFactory addressFactory)
 {
     this.connection = connection;
     this.client     = client;
     this.grpcSbBreakpointLocation = grpcSbBreakpointLocation;
     this.breakpointFactory        = breakpointFactory;
     this.addressFactory           = addressFactory;
 }
Esempio n. 22
0
        internal SbTypeMemberImpl(
            GrpcConnection connection, SbTypeMemberRpcServiceClient client,
            GrpcSbTypeMember grpcSbTypeMember, GrpcTypeFactory typeFactory)
        {
            this.connection       = connection;
            this.client           = client;
            this.grpcSbTypeMember = grpcSbTypeMember;
            this.typeFactory      = typeFactory;

            // Keep a handle to objects we need in the destructor.
            gcHandle = GCHandle.Alloc(
                new Tuple <GrpcConnection, SbTypeMemberRpcServiceClient, GrpcSbTypeMember>(
                    connection, client, grpcSbTypeMember));
        }
Esempio n. 23
0
 internal SbProcessImpl(GrpcConnection connection, GrpcSbProcess grpcSbProcess,
                        GrpcThreadFactory threadFactory, GrpcTargetFactory targetFactory,
                        GrpcUnixSignalsFactory unixSignalsFactory,
                        GrpcErrorFactory errorFactory,
                        SbProcessRpcService.SbProcessRpcServiceClient client)
 {
     this.connection         = connection;
     this.grpcSbProcess      = grpcSbProcess;
     this.client             = client;
     this.threadFactory      = threadFactory;
     this.targetFactory      = targetFactory;
     this.unixSignalsFactory = unixSignalsFactory;
     this.errorFactory       = errorFactory;
 }
Esempio n. 24
0
        internal SbSymbolImpl(
            GrpcConnection connection, SbSymbolRpcServiceClient client,
            GrpcSbSymbol grpcSbSymbol, GrpcAddressFactory addressFactory)
        {
            this.connection     = connection;
            this.client         = client;
            this.grpcSbSymbol   = grpcSbSymbol;
            this.addressFactory = addressFactory;

            // Keep a handle to objects we need in the destructor.
            gcHandle = GCHandle.Alloc(
                new Tuple <GrpcConnection, SbSymbolRpcServiceClient, GrpcSbSymbol>(
                    connection, client, grpcSbSymbol));
        }
Esempio n. 25
0
 public RemoteTargetProxy(GrpcConnection connection, GrpcSbTarget grpcSbTarget,
                          RemoteTargetRpcService.RemoteTargetRpcServiceClient client,
                          GrpcBreakpointFactory breakpointFactory, GrpcErrorFactory errorFactory,
                          GrpcProcessFactory processFactory, GrpcModuleFactory moduleFactory,
                          GrpcWatchpointFactory watchpointFactory, GrpcAddressFactory addressFactory)
 {
     this.connection        = connection;
     this.grpcSbTarget      = grpcSbTarget;
     this.client            = client;
     this.breakpointFactory = breakpointFactory;
     this.errorFactory      = errorFactory;
     this.processFactory    = processFactory;
     this.moduleFactory     = moduleFactory;
     this.watchpointFactory = watchpointFactory;
     this.addressFactory    = addressFactory;
 }
Esempio n. 26
0
        internal SbAddressImpl(
            GrpcConnection connection, SbAddressRpcServiceClient client,
            GrpcSbAddress grpcSbAddress,
            GrpcFunctionFactory functionFactory,
            GrpcSymbolFactory symbolFactory)
        {
            this.connection      = connection;
            this.client          = client;
            this.grpcSbAddress   = grpcSbAddress;
            this.functionFactory = functionFactory;
            this.symbolFactory   = symbolFactory;

            // Keep a handle to objects we need in the destructor.
            gcHandle = GCHandle.Alloc(
                new Tuple <GrpcConnection, SbAddressRpcServiceClient, GrpcSbAddress>(
                    connection, client, grpcSbAddress));
        }
Esempio n. 27
0
        // <summary>
        // Used by tests to pass in mock objects.
        // </summary>
        internal RemoteThreadProxy(GrpcConnection connection, GrpcSbThread grpcSbThread,
                                   RemoteThreadRpcService.RemoteThreadRpcServiceClient client,
                                   RemoteFrameProxyFactory frameFactory, GrpcProcessFactory processFactory,
                                   GrpcErrorFactory errorFactory, GrpcModuleFactory moduleFactory)
        {
            this.connection     = connection;
            this.grpcSbThread   = grpcSbThread;
            this.client         = client;
            this.frameFactory   = frameFactory;
            this.processFactory = processFactory;
            this.errorFactory   = errorFactory;
            this.moduleFactory  = moduleFactory;

            gcHandle = GCHandle.Alloc(
                new Tuple <GrpcConnection, RemoteThreadRpcService.RemoteThreadRpcServiceClient,
                           GrpcSbThread>(connection, client, grpcSbThread));
        }
Esempio n. 28
0
        public virtual void Delete(GrpcConnection connection, GrpcSbFrame grpcSbFrame)
        {
            var client = new RemoteFrameRpcService.RemoteFrameRpcServiceClient(
                connection.CallInvoker);

            connection
            .GetOrCreateBulkDeleter <GrpcSbFrame>()
            .QueueForDeletion(grpcSbFrame, (List <GrpcSbFrame> frames) =>
            {
                var request = new BulkDeleteRequest();
                request.Frames.AddRange(frames);
                connection.InvokeRpc(() =>
                {
                    client.BulkDelete(request);
                });
            });
        }
Esempio n. 29
0
        internal SbCommandReturnObjectImpl(
            GrpcConnection connection, SbCommandReturnObjectRpcServiceClient client,
            GrpcSbCommandReturnObject grpcSbReturnObject,
            GrpcSbCommandReturnObjectFactory returnObjectFactory)
        {
            this.connection          = connection;
            this.client              = client;
            this.grpcSbReturnObject  = grpcSbReturnObject;
            this.returnObjectFactory = returnObjectFactory;

            // Keep a handle to objects we need in the destructor.
            gcHandle = GCHandle.Alloc(
                new Tuple <GrpcConnection,
                           SbCommandReturnObjectRpcServiceClient,
                           GrpcSbCommandReturnObject>(
                    connection, client, grpcSbReturnObject));
        }
Esempio n. 30
0
        internal SbModuleImpl(GrpcConnection connection, GrpcSbModule grpcSbModule,
                              SbModuleRpcServiceClient client, GrpcAddressFactory addressFactory,
                              GrpcFileSpecFactory fileSpecFactory,
                              GrpcSectionFactory sectionFactory)
        {
            this.connection      = connection;
            this.grpcSbModule    = grpcSbModule;
            this.client          = client;
            this.addressFactory  = addressFactory;
            this.fileSpecFactory = fileSpecFactory;
            this.sectionFactory  = sectionFactory;

            // Keep a handle to objects we need in the destructor.
            gcHandle = GCHandle.Alloc(
                new Tuple <GrpcConnection, SbModuleRpcServiceClient, GrpcSbModule>(
                    connection, client, grpcSbModule));
        }