Author: martin
Date: 2007-01-05 08:26:00 -0500 (Fri, 05 Jan 2007)
New Revision: 70529

Modified:
   trunk/debugger/frontend/Main.cs
Log:
Small fix.

Modified: trunk/debugger/frontend/Main.cs
===================================================================
--- trunk/debugger/frontend/Main.cs     2007-01-05 12:04:24 UTC (rev 70528)
+++ trunk/debugger/frontend/Main.cs     2007-01-05 13:26:00 UTC (rev 70529)
@@ -54,13 +54,15 @@
                        string s;
                        bool is_complete = true;
 
-                       foreach (Process process in interpreter.Processes) {
-                               foreach (Thread thread in process.GetThreads 
()) {
-                                       if (!thread.WaitHandle.WaitOne (0, 
false))
-                                               continue;
-                                       TargetEventArgs args = 
thread.GetLastTargetEvent ();
-                                       if (args != null)
-                                               interpreter.Style.TargetEvent 
(thread, args);
+                       if (interpreter.HasTarget) {
+                               foreach (Process process in 
interpreter.Processes) {
+                                       foreach (Thread thread in 
process.GetThreads ()) {
+                                               if (!thread.WaitHandle.WaitOne 
(0, false))
+                                                       continue;
+                                               TargetEventArgs args = 
thread.GetLastTargetEvent ();
+                                               if (args != null)
+                                                       
interpreter.Style.TargetEvent (thread, args);
+                                       }
                                }
                        }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to