Author: martin
Date: 2007-03-14 10:15:11 -0500 (Wed, 14 Mar 2007)
New Revision: 74261

Modified:
   trunk/debugger/languages/mono/MonoSymbolFile.cs
Log:
Add support for byref types.

Modified: trunk/debugger/languages/mono/MonoSymbolFile.cs
===================================================================
--- trunk/debugger/languages/mono/MonoSymbolFile.cs     2007-03-14 15:11:21 UTC 
(rev 74260)
+++ trunk/debugger/languages/mono/MonoSymbolFile.cs     2007-03-14 15:15:11 UTC 
(rev 74261)
@@ -866,6 +866,10 @@
                        // This must match mono_type_get_desc() in 
mono/metadata/debug-helpers.c.
                        string GetTypeSignature (Cecil.TypeReference t)
                        {
+                               Cecil.ReferenceType rtype = t as 
Cecil.ReferenceType;
+                               if (rtype != null)
+                                       return GetTypeSignature 
(rtype.ElementType) + "&";
+
                                switch (t.FullName) {
                                case "System.Char":     return "char";
                                case "System.Boolean":  return "bool";

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

Reply via email to