Skip to content

Commit fe1608a

Browse files
committed
* eval.c (rb_call0): trace call/return of method defined from block.
fixed: [ruby-core:08329] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 7639df7 commit fe1608a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

ChangeLog

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
Sun Jul 30 23:04:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
1+
Sun Jul 30 23:26:22 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* eval.c (rb_call0): trace call/return of method defined from block.
4+
fixed: [ruby-core:08329]
25

36
* eval.c (rb_trap_eval): make the current thread runnable to deal with
47
exceptions which occurred within the trap. fixed: [ruby-dev:27729]

eval.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5838,7 +5838,15 @@ rb_call0(klass, recv, id, oid, argc, argv, body, flags)
58385838

58395839
case NODE_BMETHOD:
58405840
ruby_frame->flags |= FRAME_DMETH;
5841+
if (event_hooks) {
5842+
struct BLOCK *data;
5843+
Data_Get_Struct(body->nd_cval, struct BLOCK, data);
5844+
EXEC_EVENT_HOOK(RUBY_EVENT_CALL, data->body, recv, id, klass);
5845+
}
58415846
result = proc_invoke(body->nd_cval, rb_ary_new4(argc, argv), recv, klass);
5847+
if (event_hooks) {
5848+
EXEC_EVENT_HOOK(RUBY_EVENT_RETURN, body, recv, id, klass);
5849+
}
58425850
break;
58435851

58445852
case NODE_SCOPE:

0 commit comments

Comments
 (0)