commit eeb8e5fc4bbe84b8c6204c3da57135a243251ed7 Author: Martin Baulig Date: Thu Mar 11 00:36:56 2010 +0100 Add NULL check to type_command()/CMD_TYPE_GET_SOURCE_FILES. 2010-03-11 Martin Baulig * debugger-agent.c (type_commands): Add NULL check to `CMD_TYPE_GET_SOURCE_FILES'. --- mono/mini/ChangeLog | 5 +++++ mono/mini/debugger-agent.c | 2 ++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/mono/mini/ChangeLog b/mono/mini/ChangeLog index f935863..1f8e4ed 100755 --- a/mono/mini/ChangeLog +++ b/mono/mini/ChangeLog @@ -1,3 +1,8 @@ +2010-03-11 Martin Baulig + + * debugger-agent.c (type_commands): Add NULL check to + `CMD_TYPE_GET_SOURCE_FILES'. + 2010-03-05 Martin Baulig Add support for aborting invocations. diff --git a/mono/mini/debugger-agent.c b/mono/mini/debugger-agent.c index 3c7833a..182533d 100644 --- a/mono/mini/debugger-agent.c +++ b/mono/mini/debugger-agent.c @@ -5650,6 +5650,8 @@ type_commands (int command, guint8 *p, guint8 *end, Buffer *buf) if (minfo) { mono_debug_symfile_get_line_numbers (minfo, &source_file, NULL, NULL, NULL); + if (!source_file) + continue; for (i = 0; i < files->len; ++i) if (!strcmp (g_ptr_array_index (files, i), source_file))