[Monodevelop-patches-list] r1095 - trunk/MonoDevelop/src/Main/Base/Services

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Wed Mar 3 18:12:11 EST 2004


Author: martin
Date: 2004-03-03 18:12:11 -0500 (Wed, 03 Mar 2004)
New Revision: 1095

Modified:
   trunk/MonoDevelop/src/Main/Base/Services/DebuggingService.cs
Log:
Here we go.


Modified: trunk/MonoDevelop/src/Main/Base/Services/DebuggingService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/DebuggingService.cs	2004-03-03 22:44:38 UTC (rev 1094)
+++ trunk/MonoDevelop/src/Main/Base/Services/DebuggingService.cs	2004-03-03 23:12:11 UTC (rev 1095)
@@ -104,13 +104,10 @@
 				proc.Stop ();
 		}
 
-		public void Run (string[] argv)
+		private void initialized_event (ThreadManager manager, Process process)
 		{
-			if (Debugging)
-				return;
+			this.proc = process;
 
-			backend = new DebuggerBackend ();
-			proc = backend.Run (ProcessStart.Create (null, argv));
 			string[] keys = new string [breakpoints.Keys.Count];
 			breakpoints.Keys.CopyTo (keys, 0);
 			foreach (string key in keys) {
@@ -128,9 +125,20 @@
 				if (breakpoints [key] == null)
 					Console.WriteLine ("Couldn't insert breakpoint " + key);
 			}
+
 			proc.Continue (false);
 		}
 
+		public void Run (string[] argv)
+		{
+			if (Debugging)
+				return;
+
+			backend = new DebuggerBackend ();
+			backend.ThreadManager.InitializedEvent += new ThreadEventHandler (initialized_event);
+			backend.Run (ProcessStart.Create (null, argv));
+		}
+
 		public void Stop ()
 		{
 			if (!Debugging)




More information about the Monodevelop-patches-list mailing list