Author: martin
Date: 2006-04-03 12:54:19 -0400 (Mon, 03 Apr 2006)
New Revision: 58960
Modified:
trunk/debugger/backends/Process.cs
Log:
More killing ....
Modified: trunk/debugger/backends/Process.cs
===================================================================
--- trunk/debugger/backends/Process.cs 2006-04-03 16:45:21 UTC (rev 58959)
+++ trunk/debugger/backends/Process.cs 2006-04-03 16:54:19 UTC (rev 58960)
@@ -261,15 +261,16 @@
main_engine.Start (main_method);
}
- protected void OnThreadCreatedEvent (Thread new_thread)
+ protected void OnThreadCreatedEvent (Thread thread)
{
- thread_hash.Add (new_thread.PID, new_thread);
- manager.Debugger.OnThreadCreatedEvent (new_thread);
+ thread_hash.Add (thread.PID, thread);
+ manager.Debugger.OnThreadCreatedEvent (thread);
}
- internal void OnThreadExitedEvent (Thread new_thread)
+ internal void OnThreadExitedEvent (Thread thread)
{
- manager.Debugger.OnThreadExitedEvent (new_thread);
+ thread.Kill ();
+ manager.Debugger.OnThreadExitedEvent (thread);
}
internal void WaitForApplication ()
@@ -330,19 +331,9 @@
thread_hash.Values.CopyTo (threads, 0);
}
- bool main_in_threads = false;
+ for (int i = 0; i < threads.Length; i++)
+ threads [i].Kill ();
- for (int i = 0; i < threads.Length; i++) {
- Thread thread = threads [i];
-
- if (main_engine.Thread == thread) {
- main_in_threads = true;
- continue;
- }
-
- thread.Kill ();
- }
-
Dispose ();
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches