From abe419844c64f489a775964a3c32419f96ddc85e Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Wed, 10 Mar 2010 23:44:17 +0000 Subject: 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'. svn path=/branches/mono-2-6/mono/; revision=153432 --- mono/mini/ChangeLog | 5 +++++ mono/mini/debugger-agent.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/mono/mini/ChangeLog b/mono/mini/ChangeLog index ff002acdab6..af28a24ed9e 100644 --- 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-09 Zoltan Varga * mini-codegen.c (mono_peephole_ins): Fix the OP_FMOVE optimization. Fixes diff --git a/mono/mini/debugger-agent.c b/mono/mini/debugger-agent.c index 29aef05be8c..e581cc78ead 100644 --- a/mono/mini/debugger-agent.c +++ b/mono/mini/debugger-agent.c @@ -5338,6 +5338,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)) -- cgit v1.2.3