Bug 26033

Summary: Set next statement(CMD_THREAD_SET_IP) + stepping doesn't work as expected
Product: [Mono] Runtime Reporter: David Karlaš <david.karlas>
Component: DebuggerAssignee: Zoltan Varga <vargaz>
Status: RESOLVED FIXED    
Severity: normal CC: mono-bugs+mono, mono-bugs+runtime
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Tags: Is this bug a regression?: ---
Last known good build:

Description David Karlaš 2015-01-14 15:42:29 UTC
Set next statement doesn't work as expected on Mono...
It seems to me like every time when I do SetNextStatment and step method is executed until end of method.

This is how it works on .Net: http://youtu.be/O6dNS-GmSPk
This is how it works on Mono: http://youtu.be/IN46BmHewUo

In .Net video it steps again on line where breakpoint is but Mono just runs until end of method...

Code:
class Program
{
  static void Main()
  {
    System.Console.WriteLine ("Hi");
  }
}
Comment 1 Zoltan Varga 2015-01-15 16:49:00 UTC
This happens because the single stepper starts the current ip as the starting point instead of the ip set by set-next-statement.
Comment 2 Zoltan Varga 2015-01-15 19:14:27 UTC
Fixed in mono master 3a4c4766fa00d259c0fa750734341ae8b316e266.