+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
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);
&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
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)
{