2010-07-08 Rodrigo Kumpera <rkumpera@novell.com>
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 8 Jul 2010 18:50:30 +0000 (18:50 -0000)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 8 Jul 2010 18:50:30 +0000 (18:50 -0000)
* pedump.c (verify_image_file): Initialize the vtable as well.

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

mono/metadata/ChangeLog
mono/metadata/pedump.c

index 8099c9b13fe9fdcfa9b408df97cde759efc998d2..01975ad8ff4b8fc6fa3aa49f423d6c8318540235 100644 (file)
@@ -1,3 +1,7 @@
+2010-07-08 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * pedump.c (verify_image_file): Initialize the vtable as well.
+
 2010-07-07  Geoff Norton  <gnorton@novell.com>
 
        * sgen-gc.h:  Not every system has sys/signal.h.  Prefer the posix
index a0f8432755fd140980ea8a7a69a7f4db13abbd56..5822bde39aa6a65fc2e23cb17b61e8433223d241 100644 (file)
@@ -468,6 +468,13 @@ verify_image_file (const char *fname)
                        mono_loader_clear_error ();
                        ++count;
                }
+
+               mono_class_setup_vtable (class);
+               if (class->exception_type != MONO_EXCEPTION_NONE || mono_loader_get_last_error ()) {
+                       printf ("Error verifying class(0x%08x) %s.%s a type load error happened\n", token, class->name_space, class->name);
+                       mono_loader_clear_error ();
+                       ++count;
+               }
        }
        if (count)
                return 5;