file-io.c: Don't consider sockets as directory and avoid an endless loop. Fix bug...
[mono.git] / mono / metadata / mono-debug.c
index 6d8a1602cab97300e20c70b3a2597104d7e2bae6..b3816d22ea23c26752843fa875f6f990d73b7eb2 100644 (file)
@@ -133,6 +133,12 @@ mono_debug_init_2 (MonoAssembly *assembly)
        mono_debug_open_image (mono_assembly_get_image (assembly));
 }
 
+gboolean
+mono_debug_using_mono_debugger (void)
+{
+       return in_the_mono_debugger;
+}
+
 void
 mono_debug_cleanup (void)
 {
@@ -464,6 +470,7 @@ mono_debug_add_method (MonoMethod *method, MonoDebugMethodJitInfo *jit, MonoDoma
 
        handle = _mono_debug_get_image (method->klass->image);
        if (!handle || !handle->symfile || !handle->symfile->offset_table) {
+               mono_debug_add_wrapper (method, jit);
                mono_debugger_unlock ();
                return NULL;
        }