+2002-09-20 Martin Baulig <martin@gnome.org>
+
+ * icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethod"):
+ New interncall.
+
+ * debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethod): New
+ interncall to get a method from its metadata token.
+
2002-09-20 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Added a few checks for method->header
g_hash_table_foreach (symfile->_priv->method_table, write_method_name, symfile);
return TRUE;
}
+
+MonoReflectionMethod *
+ves_icall_MonoDebugger_GetMethod (MonoReflectionAssembly *assembly, guint32 token)
+{
+ MonoMethod *method;
+
+ method = mono_get_method (assembly->assembly->image, token, NULL);
+
+ return mono_method_get_object (mono_domain_get (), method, NULL);
+}
mono_debug_find_method (MonoSymbolFile *symfile,
MonoMethod *method);
+MonoReflectionMethod *
+ves_icall_MonoDebugger_GetMethod (MonoReflectionAssembly *assembly,
+ guint32 token);
+
#endif /* __MONO_SYMFILE_H__ */
#include <mono/metadata/rand.h>
#include <mono/metadata/sysmath.h>
#include <mono/metadata/string-icalls.h>
+#include <mono/metadata/debug-mono-symfile.h>
#include <mono/metadata/process.h>
#include <mono/io-layer/io-layer.h>
#include <mono/utils/strtod.h>
*/
"System.IO.Path::get_temp_path", ves_icall_System_IO_get_temp_path,
+ /*
+ * Private icalls for the Mono Debugger
+ */
+ "System.Reflection.Assembly::MonoDebugger_GetMethod",
+ ves_icall_MonoDebugger_GetMethod,
+
/*
* add other internal calls here
*/