Author: martin
Date: 2007-07-04 22:42:33 -0400 (Wed, 04 Jul 2007)
New Revision: 81366
Modified:
branches/martin/debugger-dublin/runtime/metadata/mono-debug.c
branches/martin/debugger-dublin/runtime/metadata/mono-debug.h
branches/martin/debugger-dublin/runtime/mini/debug-debugger.c
Log:
Modified: branches/martin/debugger-dublin/runtime/metadata/mono-debug.c
===================================================================
--- branches/martin/debugger-dublin/runtime/metadata/mono-debug.c
2007-07-05 01:46:19 UTC (rev 81365)
+++ branches/martin/debugger-dublin/runtime/metadata/mono-debug.c
2007-07-05 02:42:33 UTC (rev 81366)
@@ -1106,6 +1106,25 @@
return res;
}
+MonoDebugMethodAddress *
+mono_debug_lookup_method_address (MonoMethod *method, MonoDomain *domain)
+{
+ MonoDebugMethodAddress *address;
+ MonoDebugMethodHash lookup;
+
+ g_assert (mono_debug_debugger_version == 2);
+
+ mono_debugger_lock ();
+
+ lookup.method = method;
+ lookup.domain_id = mono_domain_get_id (domain);
+
+ address = g_hash_table_lookup (method_hash, &lookup);
+
+ mono_debugger_unlock ();
+ return address;
+}
+
static gint32
il_offset_from_address (MonoMethod *method, MonoDomain *domain, guint32
native_offset)
{
Modified: branches/martin/debugger-dublin/runtime/metadata/mono-debug.h
===================================================================
--- branches/martin/debugger-dublin/runtime/metadata/mono-debug.h
2007-07-05 01:46:19 UTC (rev 81365)
+++ branches/martin/debugger-dublin/runtime/metadata/mono-debug.h
2007-07-05 02:42:33 UTC (rev 81366)
@@ -184,6 +184,9 @@
MonoDebugMethodInfo *
mono_debug_lookup_method (MonoMethod *method);
+MonoDebugMethodAddress *
+mono_debug_lookup_method_address (MonoMethod *method, MonoDomain *domain);
+
MonoDebugMethodJitInfo*
mono_debug_find_method (MonoMethod *method, MonoDomain *domain);
Modified: branches/martin/debugger-dublin/runtime/mini/debug-debugger.c
===================================================================
--- branches/martin/debugger-dublin/runtime/mini/debug-debugger.c
2007-07-05 01:46:19 UTC (rev 81365)
+++ branches/martin/debugger-dublin/runtime/mini/debug-debugger.c
2007-07-05 02:42:33 UTC (rev 81366)
@@ -326,7 +326,7 @@
method = nm;
}
- address = mono_debug_find_method (method, domain);
+ address = mono_debug_lookup_method_address (method, domain);
if (address) {
mono_debugger_unlock ();
return (gint64) (gssize) address;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches