2004-06-18 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Fri, 18 Jun 2004 03:12:01 +0000 (03:12 -0000)
committerMartin Baulig <martin@novell.com>
Fri, 18 Jun 2004 03:12:01 +0000 (03:12 -0000)
* mono-debug-debugger.c (write_class): Write the parent class at
the end of the header.

svn path=/trunk/mono/; revision=29841

mono/metadata/ChangeLog
mono/metadata/mono-debug-debugger.c
mono/metadata/mono-debug.h

index 94c7e163cea709d4f4fc2893140499ef807c13ae..60996493f9215f75a7f9de5b9bebd432b615003d 100644 (file)
@@ -1,3 +1,7 @@
+2004-06-18  Martin Baulig  <martin@ximian.com>
+
+       * mono-debug-debugger.c (write_class): Write the parent class at
+       the end of the header.
 
 Thu Jun 17 16:50:44 CEST 2004 Paolo Molaro <lupus@ximian.com>
 
index 93153056d0d47084e167bda4d5a91e782daaae9d..3b895ace67d6d0a67270c82838deb81bcf781cc0 100644 (file)
@@ -733,6 +733,10 @@ write_class (MonoDebuggerSymbolTable *table, MonoClass *klass)
        WRITE_UINT32 (ptr, num_static_methods * (4 + 2 * sizeof (gpointer)) + num_static_params * sizeof (gpointer));
        WRITE_UINT32 (ptr, num_ctors);
        WRITE_UINT32 (ptr, num_ctors * (4 + 2 * sizeof (gpointer)) + num_ctor_params * sizeof (gpointer));
+       if (klass->parent && (klass->parent != mono_defaults.object_class))
+               WRITE_UINT32 (ptr, write_class (table, klass->parent));
+       else
+               WRITE_UINT32 (ptr, 0);
 
        for (i = 0; i < klass->field.count; i++) {
                if (klass->fields [i].type->attrs & FIELD_ATTRIBUTE_STATIC)
@@ -819,11 +823,6 @@ write_class (MonoDebuggerSymbolTable *table, MonoClass *klass)
 
        g_ptr_array_free (ctors, FALSE);
 
-       if (klass->parent && (klass->parent != mono_defaults.object_class))
-               WRITE_UINT32 (ptr, write_class (table, klass->parent));
-       else
-               WRITE_UINT32 (ptr, 0);
-
        if (ptr - old_ptr != data_size) {
                g_warning (G_STRLOC ": %d,%d,%d", ptr - old_ptr, data_size, sizeof (gpointer));
                if (klass)
index cd47176360dca9a0ac7a59ac5f85fd1c8667bfa9..9599f95adb72c3af42a1579aaa2282cb308154d1 100644 (file)
@@ -75,7 +75,7 @@ struct _MonoDebugVarInfo {
        guint32 end_scope;
 };
 
-#define MONO_DEBUGGER_VERSION                          41
+#define MONO_DEBUGGER_VERSION                          42
 #define MONO_DEBUGGER_MAGIC                            0x7aff65af4253d427ULL
 
 extern MonoDebugFormat mono_debug_format;