2002-12-30 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Mon, 30 Dec 2002 18:31:32 +0000 (18:31 -0000)
committerMartin Baulig <martin@novell.com>
Mon, 30 Dec 2002 18:31:32 +0000 (18:31 -0000)
* debug.c (debugger_compile_method): This is a wrapper around
mono_compile_method() which always sends a notification to the
debugger.

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

mono/jit/ChangeLog
mono/jit/debug.c

index 2f8ffb6d8ffcb87afc4dc1caed0c6b9555164a31..d84ec1ae0b14c154e84efef405215a27478b2b88 100644 (file)
@@ -1,3 +1,9 @@
+2002-12-30  Martin Baulig  <martin@ximian.com>
+
+       * debug.c (debugger_compile_method): This is a wrapper around
+       mono_compile_method() which always sends a notification to the
+       debugger.
+
 2002-12-30  Martin Baulig  <martin@ximian.com>
 
        * debug.c: Reload the symbol file table before sending the
index 1edeae0fc3990f0d06cd429a4a113f3481dd6926..6b5b8fa25a4b5b644f3a3d40410cacbd75f10873 100644 (file)
@@ -44,6 +44,7 @@ static pthread_mutex_t debugger_start_mutex = PTHREAD_MUTEX_INITIALIZER;
 static guint64 debugger_insert_breakpoint (guint64 method_argument, const gchar *string_argument);
 static guint64 debugger_remove_breakpoint (guint64 breakpoint);
 static int debugger_update_symbol_file_table (void);
+static gpointer debugger_compile_method (MonoMethod *method);
 
 static void mono_debug_add_assembly (MonoAssembly *assembly, gpointer user_data);
 static void mono_debug_close_assembly (AssemblyDebugInfo* info);
@@ -61,7 +62,7 @@ MonoDebuggerInfo MONO_DEBUGGER__debugger_info = {
        &debugger_symbol_file_table_generation,
        &debugger_notification_address,
        &debugger_symbol_file_table,
-       &mono_compile_method,
+       &debugger_compile_method,
        &debugger_insert_breakpoint,
        &debugger_remove_breakpoint,
        &mono_runtime_invoke
@@ -1418,6 +1419,18 @@ debugger_remove_breakpoint (guint64 breakpoint)
        return 0;
 }
 
+static gpointer
+debugger_compile_method (MonoMethod *method)
+{
+       gpointer retval;
+
+       mono_debugger_lock ();
+       retval = mono_compile_method (method);
+       mono_debugger_signal ();
+       mono_debugger_unlock ();
+       return retval;
+}
+
 int
 mono_remove_breakpoint (int breakpoint_id)
 {