2003-02-02 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Sun, 2 Feb 2003 12:21:02 +0000 (12:21 -0000)
committerMartin Baulig <martin@novell.com>
Sun, 2 Feb 2003 12:21:02 +0000 (12:21 -0000)
* debug.c (debug_update_il_offsets): Set the prologue end address
to the address of the first source line.

svn path=/trunk/mono/; revision=11111

mono/jit/ChangeLog
mono/jit/debug.c

index 2a6afcbf5deaf0ca661c20c9b331d9993f17265f..7d1f219cc3de761d2bdc5573552ef88b9205839f 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-02  Martin Baulig  <martin@ximian.com>
+
+       * debug.c (debug_update_il_offsets): Set the prologue end address
+       to the address of the first source line.
+
 2003-01-31  Dietmar Maurer  <dietmar@ximian.com>
 
        * jit.c (mono_analyze_stack): use the wrapper signature if necessary
index b3be8f131ac61966f1f82e2caa3762ef9b36a9cf..02be760c83adcb2f75ee9e91f5587bd3089b29a5 100644 (file)
@@ -707,6 +707,13 @@ debug_update_il_offsets (AssemblyDebugInfo *info, MonoDebugMethodInfo *minfo, Mo
                        g_message (G_STRLOC ": %x,%x,%d", lne.address, lne.offset, lne.line);
                }
        }
+
+       if (minfo->jit->line_numbers->len) {
+               MonoDebugLineNumberEntry lne = g_array_index (
+                       minfo->jit->line_numbers, MonoDebugLineNumberEntry, 0);
+
+               minfo->jit->prologue_end = lne.address;
+       }
 }
 
 static AssemblyDebugInfo *