コード例 #1
0
        public ulong GetLoadAddress(RemoteTarget target)
        {
            GetLoadAddressResponse response = null;

            if (connection.InvokeRpc(() =>
            {
                response = client.GetLoadAddress(
                    new GetLoadAddressRequest
                {
                    Section = grpcSbSection,
                    Target = new GrpcSbTarget {
                        Id = target.GetId()
                    }
                });
            }))
            {
                return(response.LoadAddress);
            }
            return(DebuggerConstants.INVALID_ADDRESS);
        }
コード例 #2
0
        public ulong GetLoadAddress(RemoteTarget target)
        {
            GetLoadAddressResponse response = null;

            if (connection.InvokeRpc(() =>
            {
                response = client.GetLoadAddress(
                    new GetLoadAddressRequest
                {
                    Address = grpcSbAddress,
                    Target = new GrpcSbTarget {
                        Id = target.GetId()
                    }
                });
            }))
            {
                return(response.LoadAddress);
            }
            return(0);
        }