[ruby-cvs:68605] ko1:r61424 (trunk): revert line number spec of *return events.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Sat Dec 23 20:00:48 JST 2017


ko1	2017-12-23 20:00:48 +0900 (Sat, 23 Dec 2017)

  New Revision: 61424

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61424

  Log:
    revert line number spec of *return events.
    
    * compile.c (rb_iseq_compile_node): line number spec of :return, :b_return
      and :end events of 'TracePoint` is changed for [Feature #14104].
    
      Quoted from [Feature #14104]:
      > Line numbers on :return/:b_return events show the last executed lines,
      > instead of end lines (without return statement).
      Note that :end event also affected.
    
      However, "buybug", a well-known ruby debugger depends on previous behavior
      so that I reverted this specification.
    
    * test/ruby/test_settracefunc.rb: catch up this fix.

  Modified files:
    trunk/compile.c
    trunk/test/ruby/test_settracefunc.rb


More information about the ruby-cvs mailing list