Author: toshok
Date: 2005-04-22 16:56:22 -0400 (Fri, 22 Apr 2005)
New Revision: 43463

Modified:
   trunk/debugger/ChangeLog
   trunk/debugger/backends/MonoThreadManager.cs
Log:
2005-04-22  Chris Toshok  <[EMAIL PROTECTED]>

        * backends/MonoThreadManager.cs (MonoThreadManager.ThreadCreated):
        fix for use with the new io-layer, which appears to create an
        additional thread at runtime startup.  This change is evil, and
        this code is also evil.  There has to be a better way for the
        debugger to figure out which is the main managed thread.



Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog    2005-04-22 20:34:00 UTC (rev 43462)
+++ trunk/debugger/ChangeLog    2005-04-22 20:56:22 UTC (rev 43463)
@@ -1,3 +1,11 @@
+2005-04-22  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * backends/MonoThreadManager.cs (MonoThreadManager.ThreadCreated):
+       fix for use with the new io-layer, which appears to create an
+       additional thread at runtime startup.  This change is evil, and
+       this code is also evil.  There has to be a better way for the
+       debugger to figure out which is the main managed thread.
+
 2005-04-19  Chris Toshok  <[EMAIL PROTECTED]>
 
        * frontend/Command.cs (CdCommand.DoExecute): special handling for

Modified: trunk/debugger/backends/MonoThreadManager.cs
===================================================================
--- trunk/debugger/backends/MonoThreadManager.cs        2005-04-22 20:34:00 UTC 
(rev 43462)
+++ trunk/debugger/backends/MonoThreadManager.cs        2005-04-22 20:56:22 UTC 
(rev 43463)
@@ -103,7 +103,7 @@
 
                        if (first_index == 0) {
                                is_nptl = caller_inferior == this.inferior;
-                               first_index = is_nptl ? 2 : 3;
+                               first_index = is_nptl ? 3 : 4;
                        }
 
                        if (thread_hash.Count == first_index) {

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

Reply via email to