Author: martin
Date: 2006-05-30 10:08:24 -0400 (Tue, 30 May 2006)
New Revision: 61259
Modified:
trunk/mono/mono/metadata/ChangeLog
trunk/mono/mono/metadata/debug-mono-symfile.c
Log:
2006-05-30 Martin Baulig <[EMAIL PROTECTED]>
* debug-mono-symfile.c
(mono_debug_symfile_lookup_location): Fix the algorithm:
when looking up B which is between A and C, return A not C.
Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog 2006-05-30 11:31:18 UTC (rev 61258)
+++ trunk/mono/mono/metadata/ChangeLog 2006-05-30 14:08:24 UTC (rev 61259)
@@ -1,3 +1,9 @@
+2006-05-30 Martin Baulig <[EMAIL PROTECTED]>
+
+ * debug-mono-symfile.c
+ (mono_debug_symfile_lookup_location): Fix the algorithm:
+ when looking up B which is between A and C, return A not C.
+
2006-05-29 Martin Baulig <[EMAIL PROTECTED]>
* mono-debug.h
Modified: trunk/mono/mono/metadata/debug-mono-symfile.c
===================================================================
--- trunk/mono/mono/metadata/debug-mono-symfile.c 2006-05-30 11:31:18 UTC
(rev 61258)
+++ trunk/mono/mono/metadata/debug-mono-symfile.c 2006-05-30 14:08:24 UTC
(rev 61259)
@@ -218,10 +218,10 @@
lne = (MonoSymbolFileLineNumberEntry *) ptr;
- for (i = 0; i < read32(&(minfo->entry->_num_line_numbers)); i++, lne++)
{
+ for (i = read32(&(minfo->entry->_num_line_numbers)) - 1; i >= 0; i--,
lne--) {
MonoDebugSourceLocation *location;
- if (read32(&(lne->_offset)) < offset)
+ if (read32(&(lne->_offset)) > offset)
continue;
location = g_new0 (MonoDebugSourceLocation, 1);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches