[Mono-devel-list] Re: mono-debugger 0.9

Norbert Berzen norbert at spice.gia.rwth-aachen.de
Wed Jul 7 07:06:41 EDT 2004


Hi Alex,

you may want to try the following patch:

---<cut here>---<cut here>---<cut here>---<cut here>---<cut here>

--- ./mono-debugger-0.9/wrapper/wrapper.c.orig	2004-04-26
21:14:27.000000000 +0200
+++ ./mono-debugger-0.9/wrapper/wrapper.c	2004-07-06 16:37:28.000000000
+0200
@@ -118,7 +118,7 @@
 {
 	MonoClass *klass = GUINT_TO_POINTER ((guint32) value);
 	MonoVTable *vtable = mono_class_vtable (mono_domain_get (), klass);
-	return GPOINTER_TO_UINT (vtable->data);
+	return GPOINTER_TO_UINT (mono_vtable_get_static_field_data (vtable));
 }
 
 static void
@@ -223,7 +223,9 @@
 	 */
 
 	debugger_main_method = mono_get_method (
-		assembly->image, mono_image_get_entry_point (assembly->image), NULL);
+		mono_assembly_get_image(assembly),
+		mono_image_get_entry_point (mono_assembly_get_image(assembly)),
+		NULL);
 	MONO_DEBUGGER__manager.main_function = mono_compile_method
(debugger_main_method);
 
 	/*

---<cut here>---<cut here>---<cut here>---<cut here>---<cut here>
-- 
Dr. Norbert Berzen              Tel.:   +49 241 80-95292
Geodaet. Institut, RWTH Aachen  Fax.:   +49 241 80-92142
Templergraben 55, 52062 Aachen  E-Mail: norbert at spice.gia.rwth-aachen.de

-------------- next part --------------
--- ./mono-debugger-0.9/wrapper/wrapper.c.orig	2004-04-26 21:14:27.000000000 +0200
+++ ./mono-debugger-0.9/wrapper/wrapper.c	2004-07-06 16:37:28.000000000 +0200
@@ -118,7 +118,7 @@
 {
 	MonoClass *klass = GUINT_TO_POINTER ((guint32) value);
 	MonoVTable *vtable = mono_class_vtable (mono_domain_get (), klass);
-	return GPOINTER_TO_UINT (vtable->data);
+	return GPOINTER_TO_UINT (mono_vtable_get_static_field_data (vtable));
 }
 
 static void
@@ -223,7 +223,9 @@
 	 */
 
 	debugger_main_method = mono_get_method (
-		assembly->image, mono_image_get_entry_point (assembly->image), NULL);
+		mono_assembly_get_image(assembly),
+		mono_image_get_entry_point (mono_assembly_get_image(assembly)),
+		NULL);
 	MONO_DEBUGGER__manager.main_function = mono_compile_method (debugger_main_method);
 
 	/*


More information about the Mono-devel-list mailing list