mono_debugger_lock ();
klass = mono_debugger_register_class_init_callback (image, class_name, token, index);
- if (!klass) {
+ if (!klass || !klass->inited || !klass->methods) {
mono_debugger_unlock ();
return 0;
}
method = nm;
}
- info = mono_debugger_insert_method_breakpoint (method, index);
+ info = mono_debug_lookup_method_addresses (method);
mono_debugger_unlock ();
return (guint64) (gsize) info;
}
{
mono_debugger_lock ();
mono_debugger_remove_method_breakpoint (index);
+ mono_debugger_remove_class_init_callback (index);
mono_debugger_unlock ();
}