Author: miguel
Date: 2006-06-08 13:33:58 -0400 (Thu, 08 Jun 2006)
New Revision: 61578

Modified:
   trunk/mono/mono/metadata/debug-mono-symfile.c
Log:
Revert until Martin is online to debug

Modified: trunk/mono/mono/metadata/debug-mono-symfile.c
===================================================================
--- trunk/mono/mono/metadata/debug-mono-symfile.c       2006-06-08 17:33:41 UTC 
(rev 61577)
+++ trunk/mono/mono/metadata/debug-mono-symfile.c       2006-06-08 17:33:58 UTC 
(rev 61578)
@@ -199,7 +199,7 @@
        MonoSymbolFile *symfile;
        gchar *source_file = NULL;
        const char *ptr;
-       int count, i;
+       int i;
 
        if ((symfile = minfo->handle->symfile) == NULL)
                return NULL;
@@ -216,13 +216,12 @@
 
        ptr = symfile->raw_contents + 
read32(&(minfo->entry->_line_number_table_offset));
 
-       count = read32(&(minfo->entry->_num_line_numbers));
-       lne = ((MonoSymbolFileLineNumberEntry *) ptr) + count;
+       lne = (MonoSymbolFileLineNumberEntry *) ptr;
 
-       for (i = count - 1; i >= 0; i--, lne--) {
+       for (i = 0; i < read32(&(minfo->entry->_num_line_numbers)); 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

Reply via email to