[Mono-bugs] [Bug 543776] New: Stepping inside using clause does not work

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 2 09:34:30 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=543776


           Summary: Stepping inside using clause does not work
    Classification: Mono
           Product: Mono: Debugger
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: cli
        AssignedTo: martin at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


using System;

struct C : IDisposable
{
    public void Dispose ()
    {
        Console.WriteLine ("Dispose");
    }
}

class Program
{
    static bool No ()
    {
        return true;
    }

    static void Main (string[] args)
    {
        using (var v = new C ())
        {
            if (No ())
                return;

            Console.WriteLine ("in");
        }

        Console.WriteLine ("end");
    }
}

>>>>>>>>>>>>>>

Mono Debugger
(mdb) r
Starting program: bug-mdb.exe 
Thread @1 stopped at #0: 0xb6f49208 in Program.Main(string[])+0x10 at
/home/marek/svn/debugger/bug-mdb.cs:22.
  22             if (No ())
(mdb) n
Thread @1 stopped at #0: 0xb6f49211 in Program.Main(string[])+0x19 at
/home/marek/svn/debugger/bug-mdb.cs:23.
  23                 return;
(mdb) n
Thread @1 stopped at #0: 0xb6f49246 in Program.Main(string[])+0x4e at
/home/marek/svn/debugger/bug-mdb.cs:25.
  25             Console.WriteLine ("in");
(mdb) n
Dispose
Thread @1 stopped at #0: 0xb6f49219 in Program.Main(string[])+0x21 at
/home/marek/svn/debugger/bug-mdb.cs:23.
  23                 return;
(mdb) n
Thread @1 exited.
Process #1 exited.
(mdb) Target exited.


Line "Console.WriteLine ("in");" is never hit by runtime, same applies to
second return.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list