projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
733ea88
)
Handle error creating xdb.il
author
Gonzalo Paniagua Javier
<gonzalo.mono@gmail.com>
Wed, 29 Sep 2010 16:24:48 +0000
(12:24 -0400)
committer
Gonzalo Paniagua Javier
<gonzalo.mono@gmail.com>
Wed, 29 Sep 2010 16:26:58 +0000
(12:26 -0400)
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.
mono/mini/xdebug.c
patch
|
blob
|
history
diff --git
a/mono/mini/xdebug.c
b/mono/mini/xdebug.c
index 175dc86454ef9eb7b5a63bbe953727421ecca4ac..8c8dfd5fd8afdefa6ca93ec37863f4672a7e08f8 100644
(file)
--- 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;