Exemplo n.º 1
0
		public DebuggerStartInfo CreateDebuggerStartInfo (ExecutionCommand command)
		{
			var cmd = (MeeGoExecutionCommand) command;
			
			var debuggerAddress = Dns.GetHostEntry (Dns.GetHostName ()).AddressList[0];
			int debuggerPort = 10000;
			
			var dev = MeeGoDevice.GetChosenDevice ();
			var startInfo = new MeeGoSoftDebuggerStartInfo (debuggerAddress, debuggerPort, cmd, dev);
			startInfo.SetUserAssemblies (cmd.UserAssemblyPaths);
			return startInfo;
		}
Exemplo n.º 2
0
        public DebuggerStartInfo CreateDebuggerStartInfo(ExecutionCommand command)
        {
            var cmd = (MeeGoExecutionCommand)command;

            var debuggerAddress = Dns.GetHostEntry(Dns.GetHostName()).AddressList[0];
            int debuggerPort    = 10000;

            var dev       = MeeGoDevice.GetChosenDevice();
            var startInfo = new MeeGoSoftDebuggerStartInfo(debuggerAddress, debuggerPort, cmd, dev);

            startInfo.SetUserAssemblies(cmd.UserAssemblyPaths);
            return(startInfo);
        }
		void StartProcess (MeeGoSoftDebuggerStartInfo dsi)
		{
			MeeGoUtility.Upload (dsi.Device, dsi.ExecutionCommand.Config, null, null).WaitForCompleted ();
			var auth = MeeGoExecutionHandler.GetGdmXAuth (dsi.Device);
			string debugOptions = string.Format ("transport=dt_socket,address={0}:{1}", dsi.Address, dsi.DebugPort);
			
			process = MeeGoExecutionHandler.CreateProcess (dsi.ExecutionCommand, debugOptions, dsi.Device, auth,
			                                               x => OnTargetOutput (false, x),
			                                               x => OnTargetOutput (true, x));
			
			process.Completed += delegate {
				process = null;
			};
			
			TargetExited += delegate {
				EndProcess ();
			};
			
			process.Run ();
		}
Exemplo n.º 4
0
        void StartProcess(MeeGoSoftDebuggerStartInfo dsi)
        {
            MeeGoUtility.Upload(dsi.Device, dsi.ExecutionCommand.Config, null, null).WaitForCompleted();
            var    auth         = MeeGoExecutionHandler.GetGdmXAuth(dsi.Device);
            string debugOptions = string.Format("transport=dt_socket,address={0}:{1}", dsi.Address, dsi.DebugPort);

            process = MeeGoExecutionHandler.CreateProcess(dsi.ExecutionCommand, debugOptions, dsi.Device, auth,
                                                          x => OnTargetOutput(false, x),
                                                          x => OnTargetOutput(true, x));

            process.Completed += delegate {
                process = null;
            };

            TargetExited += delegate {
                EndProcess();
            };

            process.Run();
        }