2002-06-29 Martin Baulig <martin@gnome.org>
authorMartin Baulig <martin@novell.com>
Sat, 29 Jun 2002 01:00:23 +0000 (01:00 -0000)
committerMartin Baulig <martin@novell.com>
Sat, 29 Jun 2002 01:00:23 +0000 (01:00 -0000)
* MonoDwarfFileWriter.cs (DieInheritance): Make this actually work.

svn path=/trunk/mcs/; revision=5494

mcs/class/Mono.CSharp.Debugger/ChangeLog
mcs/class/Mono.CSharp.Debugger/MonoDwarfFileWriter.cs

index f816aaf9f608ac77550dbef0f6c603c52d14b355..96bc42b931b805dea20954a2982e67da7c72eceb 100644 (file)
@@ -1,3 +1,7 @@
+2002-06-29  Martin Baulig  <martin@gnome.org>
+
+       * MonoDwarfFileWriter.cs (DieInheritance): Make this actually work.
+
 2002-06-29  Martin Baulig  <martin@gnome.org>
 
        * MonoDwarfFileWriter.cs, MonoSymbolWriter.cs: Put all TAG_subprogram's into their
index 95a836ca8166485b3d619554a9f8684fb03290da..09b0fd98c76c6a40d119a6b188348ad6ecc9165e 100755 (executable)
@@ -1016,13 +1016,18 @@ namespace Mono.CSharp.Debugger
                        }
 
                        public void WriteTypeReference (ITypeHandle ihandle)
+                       {
+                               WriteTypeReference (ihandle, true);
+                       }
+
+                       public void WriteTypeReference (ITypeHandle ihandle, bool use_pointer_die)
                        {
                                if (!(ihandle is TypeHandle))
                                        throw new NotSupportedException ();
 
                                TypeHandle handle = (TypeHandle) ihandle;
 
-                               if (handle.PointerDie != null)
+                               if (use_pointer_die && (handle.PointerDie != null))
                                        WriteRelativeDieReference (handle.PointerDie);
                                else
                                        WriteRelativeDieReference (handle.TypeDie);
@@ -1878,7 +1883,7 @@ namespace Mono.CSharp.Debugger
 
                        public override void DoEmit ()
                        {
-                               DieCompileUnit.WriteTypeReference (TypeHandle);
+                               DieCompileUnit.WriteTypeReference (TypeHandle, false);
 
                                object end_index = aw.StartSubsectionWithSize ();
                                aw.WriteUInt8 ((int) DW_OP.OP_const1u);