Author: martin
Date: 2007-06-19 11:02:27 -0400 (Tue, 19 Jun 2007)
New Revision: 80169
Modified:
branches/martin/debugger-dublin/runtime/mini/debug-debugger.c
Log:
Code cleanups.
Modified: branches/martin/debugger-dublin/runtime/mini/debug-debugger.c
===================================================================
--- branches/martin/debugger-dublin/runtime/mini/debug-debugger.c
2007-06-19 15:01:56 UTC (rev 80168)
+++ branches/martin/debugger-dublin/runtime/mini/debug-debugger.c
2007-06-19 15:02:27 UTC (rev 80169)
@@ -171,30 +171,23 @@
return 0;
}
-static gpointer
-debugger_compile_method_cb (MonoMethod *method)
+static guint64
+debugger_compile_method (guint64 method_arg)
{
- gpointer retval;
+ MonoMethod *method = (MonoMethod *) GUINT_TO_POINTER ((gsize)
method_arg);
+ gpointer addr;
mono_debugger_lock ();
- retval = mono_compile_method (method);
+ addr = mono_compile_method (method);
mono_debugger_unlock ();
mono_debugger_notification_function (
- MONO_DEBUGGER_EVENT_METHOD_COMPILED, (guint64) (gsize) retval,
0);
+ MONO_DEBUGGER_EVENT_METHOD_COMPILED, (guint64) (gsize) addr, 0);
- return retval;
+ return (guint64) (gsize) addr;
}
static guint64
-debugger_compile_method (guint64 method_arg)
-{
- MonoMethod *method = (MonoMethod *) GUINT_TO_POINTER ((gsize)
method_arg);
-
- return (guint64) (gsize) debugger_compile_method_cb (method);
-}
-
-static guint64
debugger_get_virtual_method (guint64 object_arg, guint64 method_arg)
{
MonoObject *object = (MonoObject *) GUINT_TO_POINTER ((gsize)
object_arg);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches