From: Gonzalo Paniagua Javier Date: Wed, 29 Sep 2010 16:24:48 +0000 (-0400) Subject: Handle error creating xdb.il X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=3fcfa6d01b9fdc59a718115c44b6fad976962e87;hp=733ea880467c941f62296ae1ebeb4bd20ec9b50e;p=mono.git Handle error creating xdb.il If creating the xdb.il file fails, disable the mono support for debugging in gdb. Managed symbol names won't be displayed in stack traces. Fixes bug #642625. --- diff --git a/mono/mini/xdebug.c b/mono/mini/xdebug.c index 175dc86454e..8c8dfd5fd8a 100644 --- a/mono/mini/xdebug.c +++ b/mono/mini/xdebug.c @@ -142,6 +142,11 @@ mono_xdebug_init (char *options) /* This file will contain the IL code for methods which don't have debug info */ il_file = fopen ("xdb.il", "w"); + if (il_file == NULL) { + use_gdb_interface = FALSE; + g_warning ("** Unable to create xdb.il. Managed symbol names won't be available."); + return; + } if (use_gdb_interface) return;