summaryrefslogtreecommitdiff
path: root/vm_trace.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-10 18:19:41 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-10 18:19:41 +0000
commitac778eb2cf8f66a7c15573a73c620f237f9f17dd (patch)
tree6a4e49db5de04c076fece45b3135e2e75d8231ca /vm_trace.c
parentdf196f25ec8e67bd667caa862c35ccd9f828f393 (diff)
downloadruby-ac778eb2cf8f66a7c15573a73c620f237f9f17dd.tar.gz
* vm_trace.c (symbol2event_flag): add secret feature.
add a_call/a_return events. a_call is call | b_call | c_call, and same as a_return. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_trace.c')
-rw-r--r--vm_trace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_trace.c b/vm_trace.c
index a96e733741..5930274be8 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -662,6 +662,8 @@ symbol2event_flag(VALUE v)
C(thread_end, THREAD_END);
C(specified_line, SPECIFIED_LINE);
#undef C
+ CONST_ID(id, "a_call"); if (sym == ID2SYM(id)) return RUBY_EVENT_CALL | RUBY_EVENT_B_CALL | RUBY_EVENT_C_CALL;
+ CONST_ID(id, "a_return"); if (sym == ID2SYM(id)) return RUBY_EVENT_RETURN | RUBY_EVENT_B_RETURN | RUBY_EVENT_C_RETURN;
rb_raise(rb_eArgError, "unknown event: %s", rb_id2name(SYM2ID(sym)));
}