示例#1
0
 internal SbWatchpointImpl(
     GrpcConnection connection, GrpcSbWatchpoint grpcSbWatchpoint) :
     this(connection,
          new SbWatchpointRpcService.SbWatchpointRpcServiceClient(connection.CallInvoker),
          grpcSbWatchpoint)
 {
 }
示例#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())
 {
 }
示例#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())
 {
 }
示例#4
0
 internal RemoteThreadProxy(GrpcConnection connection, GrpcSbThread grpcSbThead)
     : this(connection, grpcSbThead,
            new RemoteThreadRpcService.RemoteThreadRpcServiceClient(connection.CallInvoker),
            new RemoteFrameProxyFactory(), new GrpcProcessFactory(),
            new GrpcErrorFactory(), new GrpcModuleFactory())
 {
 }
示例#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;
 }
示例#6
0
 internal RemoteValueProxy(GrpcConnection connection, GrpcSbValue grpcSbValue)
     : this(connection,
            new RemoteValueRpcServiceClient(connection.CallInvoker), grpcSbValue,
            new GrpcValueFactory(), new GrpcErrorFactory(), new GrpcTypeFactory(),
            new CachedValueFactory())
 {
 }
示例#7
0
 internal SbCommandReturnObjectImpl(GrpcConnection connection,
                                    GrpcSbCommandReturnObject grpcSbReturnObject)
     : this(connection,
            new SbCommandReturnObjectRpcServiceClient(connection.CallInvoker),
            grpcSbReturnObject,
            new GrpcSbCommandReturnObjectFactory())
 {
 }
示例#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())
 {
 }
示例#11
0
 public virtual RemoteFrame Create(GrpcConnection connection, GrpcSbFrame grpcSbFrame)
 {
     if (grpcSbFrame == null)
     {
         return(null);
     }
     return(new RemoteFrameProxy(connection, grpcSbFrame));
 }
示例#12
0
 internal SbProcessImpl(GrpcConnection connection, GrpcSbProcess grpcSbProcess)
     : this(connection, grpcSbProcess,
            new GrpcThreadFactory(),
            new GrpcTargetFactory(),
            new GrpcUnixSignalsFactory(), new GrpcErrorFactory(),
            new SbProcessRpcService.SbProcessRpcServiceClient(connection.CallInvoker))
 {
 }
示例#13
0
 internal SbWatchpointImpl(
     GrpcConnection connection, SbWatchpointRpcService.SbWatchpointRpcServiceClient client,
     GrpcSbWatchpoint grpcSbWatchpoint)
 {
     this.connection       = connection;
     this.client           = client;
     this.grpcSbWatchpoint = grpcSbWatchpoint;
 }
示例#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;
 }
示例#15
0
        public virtual SbPlatform Create(string platformName, GrpcConnection grpcConnection)
        {
            var instance = new SbPlatformImpl(grpcConnection);

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

            if (instance.Create(name))
            {
                return(instance);
            }
            return(null);
        }
示例#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));
        }
示例#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));
        }
示例#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;
 }
示例#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));
        }
示例#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;
 }
示例#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));
        }
示例#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;
 }
示例#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));
        }
示例#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));
        }
示例#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);
                });
            });
        }
示例#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));
        }
示例#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));
        }