[Runtime] Disable xdebug on OSX because it does not work and prevents gdb use.
authorAlexander Kyte <alexander.kyte@xamarin.com>
Wed, 1 Apr 2015 19:13:52 +0000 (15:13 -0400)
committerAlexander Kyte <alexander.kyte@xamarin.com>
Wed, 1 Apr 2015 19:48:38 +0000 (15:48 -0400)
mono/mini/mini-runtime.c
mono/mini/mini.h

index 85bc03ec77ca24abd59806c03a3e840e45432e66..215bbf53283c94db7ac135bce685221122009dfb 100755 (executable)
@@ -2987,6 +2987,7 @@ mini_init (const char *filename, const char *runtime_version)
 
        mono_unwind_init ();
 
+#ifdef XDEBUG_ENABLED
        if (g_getenv ("MONO_XDEBUG")) {
                const char *xdebug_opts = g_getenv ("MONO_XDEBUG");
                mono_xdebug_init (xdebug_opts);
@@ -2998,6 +2999,7 @@ mini_init (const char *filename, const char *runtime_version)
                mono_dont_free_domains = TRUE;
                mono_using_xdebug = TRUE;
        }
+#endif
 
 #ifdef ENABLE_LLVM
        if (mono_use_llvm) {
index ed15138085513c93fd4be6e833e2ae75fa83408f..427b39bb679d40cd7823457e1687c46c8f0dcaae 100644 (file)
@@ -2891,6 +2891,10 @@ void        mono_simd_intrinsics_init (void);
 MonoInst*   mono_emit_native_types_intrinsics (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignature *fsig, MonoInst **args);
 MonoType*   mini_native_type_replace_type (MonoType *type) MONO_LLVM_INTERNAL;
 
+#ifdef __linux__
+#define XDEBUG_ENABLED 1
+#endif
+
 #ifdef __linux__
 /* maybe enable also for other systems? */
 #define ENABLE_JIT_MAP 1