[Mono-bugs] [Bug 75572][Nor] Changed - local variable liveness ranges = lexical blocks in the mono backend

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun May 21 15:53:42 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by midfield at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75572

--- shadow/75572	2005-09-05 13:52:38.000000000 -0400
+++ shadow/75572.tmp.13874	2006-05-21 15:53:42.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 75572
 Product: Mono: Debugger
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: backend
 AssignedTo: martin at ximian.com                            
 ReportedBy: toshok at ximian.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -18,6 +18,25 @@
 
 the debugger assumes that a local variable is alive from the start to
 finish of the enclosing lexical block, which might not always be the case.
 
 ------- Additional Comments From miguel at ximian.com  2005-09-05 13:52 -------
 reassigning to new debugger owner.
+
+------- Additional Comments From midfield at gmail.com  2006-05-21 15:53 -------
+I'm not sure if this is exactly the same, but consider the following code:
+
+1  public class Foo {
+2    public static void Main() {
+3      int j = 0;
+4      for(int i = 0; i < 10; i++) {
+5        j += i;
+6      }
+7      for(int i = 0; i < 10; i++) {
+8        j += i;
+9      }
+10   }
+11 }
+
+Using mono, debugger from svn, I put a breakpoint at 8.  Using the
+debugger I inspect the variable "i" at the breakpoint, it is always 0,
+even though j advances properly.


More information about the mono-bugs mailing list