Hi,

At Tue, 11 Mar 2008 18:30:28 +0900,
Rocky Bernstein wrote in [ruby-core:15855]:
> Notice that we give a *line* trace for line 3 but the *return *line number
> which follows that goes back to line 2.

It yielded the first line of the method.  Although it's
difficult to yield the exact line number at `end', but easy for
the last executed line.  Considering the case using return,
this might be better.


Index: eval.c =================================================================== --- eval.c (revision 15746) +++ eval.c (working copy) @@ -6015,5 +6015,5 @@ rb_call0(klass, recv, id, oid, argc, arg POP_TAG(); if (event_hooks) { - EXEC_EVENT_HOOK(RUBY_EVENT_RETURN, body, recv, id, klass); + EXEC_EVENT_HOOK(RUBY_EVENT_RETURN, ruby_current_node, recv, id, klass); } POP_VARS();
-- Nobu Nakada