Author: toshok
Date: 2005-04-13 23:26:09 -0400 (Wed, 13 Apr 2005)
New Revision: 42978

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

        * backends/mono/MonoLanguageBackend.cs: rather broken fix for
        74391.  call MonoDebuggerInfo.LookupType before looking up the
        type.



Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog    2005-04-14 03:24:49 UTC (rev 42977)
+++ trunk/debugger/ChangeLog    2005-04-14 03:26:09 UTC (rev 42978)
@@ -1,5 +1,11 @@
 2005-04-13  Chris Toshok  <[EMAIL PROTECTED]>
 
+       * backends/mono/MonoLanguageBackend.cs: rather broken fix for
+       74391.  call MonoDebuggerInfo.LookupType before looking up the
+       type.
+
+2005-04-13  Chris Toshok  <[EMAIL PROTECTED]>
+
        * interfaces/IMethod.cs: Add some docs.
 
        * interfaces/IArchitecture.cs: same.

Modified: trunk/debugger/backends/mono/MonoLanguageBackend.cs
===================================================================
--- trunk/debugger/backends/mono/MonoLanguageBackend.cs 2005-04-14 03:24:49 UTC 
(rev 42977)
+++ trunk/debugger/backends/mono/MonoLanguageBackend.cs 2005-04-14 03:26:09 UTC 
(rev 42978)
@@ -578,6 +578,15 @@
                        if (name.IndexOf ('[') >= 0)
                                return null;
 
+                       // XXX this fixes #74391.  we basically need
+                       // to ensure the class has been initialized by
+                       // the runtime (and therefore had its
+                       // debugging info made available to the
+                       // debugger).
+                       mutex.Lock ();
+                       frame.Process.CallMethod (info.LookupType, name);
+                       mutex.Unlock ();
+
                        foreach (MonoSymbolFile symfile in symbol_files) {
                                Type type = symfile.Assembly.GetType (name);
                                if (type == null)

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

Reply via email to