Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2010-03-11 02:44:17 +0300
committerMartin Baulig <martin@novell.com>2010-03-11 02:44:17 +0300
commitabe419844c64f489a775964a3c32419f96ddc85e (patch)
tree97fb4e9534fefae922a2cd0198042fd3df74c23f
parent7574edd405c9853e36ebd3ad15250e3a02c7adcd (diff)
Add NULL check to type_command()/CMD_TYPE_GET_SOURCE_FILES.
2010-03-11 Martin Baulig <martin@ximian.com> * debugger-agent.c (type_commands): Add NULL check to `CMD_TYPE_GET_SOURCE_FILES'. svn path=/branches/mono-2-6/mono/; revision=153432
-rw-r--r--mono/mini/ChangeLog5
-rw-r--r--mono/mini/debugger-agent.c2
2 files changed, 7 insertions, 0 deletions
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 <martin@ximian.com>
+
+ * debugger-agent.c (type_commands): Add NULL check to
+ `CMD_TYPE_GET_SOURCE_FILES'.
+
2010-03-09 Zoltan Varga <vargaz@gmail.com>
* 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))