All pastes #1832721 Raw Edit

Anonymous

public diff v1 · immutable
#1832721 ·published 2010-03-10 23:38 UTC
rendered paste body
commit eeb8e5fc4bbe84b8c6204c3da57135a243251ed7Author: Martin Baulig <martin@novell.com>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  <martin@ximian.com>        	* 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/ChangeLogindex f935863..1f8e4ed 100755--- 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-05  Martin Baulig  <martin@ximian.com>  	Add support for aborting invocations.diff --git a/mono/mini/debugger-agent.c b/mono/mini/debugger-agent.cindex 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))