Merge pull request #2625 from xmcclure/tinymemoryleak
[mono.git] / mono / mini / mini-darwin.c
index 35a35f532051c397654da9b5b92140dccfe0c10b..659075cc30a7f7297017b408d8df42eaf82f72c6 100644 (file)
 #include <mono/metadata/verify-internals.h>
 #include <mono/metadata/mempool-internals.h>
 #include <mono/metadata/attach.h>
-#include <mono/metadata/gc-internal.h>
+#include <mono/metadata/gc-internals.h>
 #include <mono/utils/mono-math.h>
 #include <mono/utils/mono-compiler.h>
 #include <mono/utils/mono-counters.h>
-#include <mono/utils/mono-logger-internal.h>
+#include <mono/utils/mono-logger-internals.h>
 #include <mono/utils/mono-mmap.h>
 #include <mono/utils/dtrace.h>
 
@@ -256,11 +256,11 @@ mono_gdb_render_native_backtraces (pid_t crashed_pid)
        gboolean using_lldb = FALSE;
 
        using_lldb = TRUE;
-       /*
+
        argv [0] = g_find_program_in_path ("gdb");
-       if (!argv [0])
-               using_lldb = TRUE;
-       */
+       if (argv [0])
+               using_lldb = FALSE;
+
        if (using_lldb)
                argv [0] = g_find_program_in_path ("lldb");