Author: martin
Date: 2006-04-03 13:35:05 -0400 (Mon, 03 Apr 2006)
New Revision: 58966
Modified:
trunk/debugger/backends/Process.cs
Log:
Launch the event before actually killing the target, so the user gets the
message before the command prompt.
Modified: trunk/debugger/backends/Process.cs
===================================================================
--- trunk/debugger/backends/Process.cs 2006-04-03 17:31:51 UTC (rev 58965)
+++ trunk/debugger/backends/Process.cs 2006-04-03 17:35:05 UTC (rev 58966)
@@ -269,8 +269,8 @@
internal void OnThreadExitedEvent (Thread thread)
{
+ manager.Debugger.OnThreadExitedEvent (thread);
thread.Kill ();
- manager.Debugger.OnThreadExitedEvent (thread);
}
internal void WaitForApplication ()
@@ -340,12 +340,12 @@
internal void Kill (SingleSteppingEngine engine)
{
if (engine == main_engine) {
+ manager.Debugger.OnProcessExitedEvent
(main_engine.Process);
Kill ();
- manager.Debugger.OnProcessExitedEvent
(main_engine.Process);
} else {
thread_hash.Remove (engine.PID);
+ OnThreadExitedEvent (engine.Thread);
engine.Thread.Kill ();
- OnThreadExitedEvent (engine.Thread);
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches