Author: martin
Date: 2007-10-10 11:34:03 -0400 (Wed, 10 Oct 2007)
New Revision: 87275

Modified:
   branches/martin/debugger-terrania/frontend/ObjectFormatter.cs
   branches/martin/debugger-terrania/languages/mono/MonoGenericInstanceObject.cs
Log:


Modified: branches/martin/debugger-terrania/frontend/ObjectFormatter.cs
===================================================================
--- branches/martin/debugger-terrania/frontend/ObjectFormatter.cs       
2007-10-10 15:13:32 UTC (rev 87274)
+++ branches/martin/debugger-terrania/frontend/ObjectFormatter.cs       
2007-10-10 15:34:03 UTC (rev 87275)
@@ -357,7 +357,7 @@
                        bool first = true;
 
                        TargetObject parent = obj.GetParentObject (target);
-                       Console.WriteLine ("PARENT: {0} {1}", obj, parent);
+                       Console.WriteLine ("PARENT: {0} {1} {2}", obj, parent, 
parent.Type);
                        if ((parent != null) && (parent.Type != 
parent.Type.Language.ObjectType)) {
                                Append ("<{0}> = ", parent.Type.Name);
                                CheckLineWrap ();

Modified: 
branches/martin/debugger-terrania/languages/mono/MonoGenericInstanceObject.cs
===================================================================
--- 
branches/martin/debugger-terrania/languages/mono/MonoGenericInstanceObject.cs   
    2007-10-10 15:13:32 UTC (rev 87274)
+++ 
branches/martin/debugger-terrania/languages/mono/MonoGenericInstanceObject.cs   
    2007-10-10 15:34:03 UTC (rev 87275)
@@ -27,8 +27,12 @@
                                return null;
 
                        MonoClassType parent_type = parent_info.ClassType;
-                       Console.WriteLine ("GET PARENT OBJECT #1: {0}", 
parent_type);
+                       Console.WriteLine ("GET PARENT OBJECT #1: {0} {1}", 
parent_type,
+                                          parent_info.GenericClass);
 
+                       if (parent_info.GenericClass.IsNull)
+                               return new MonoClassObject (parent_type, 
parent_info, Location);
+
                        MonoGenericInstanceType ginst = new 
MonoGenericInstanceType (
                                parent_type, null, parent_info);
 

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

Reply via email to